Making Batch for /f code work propely -
Making Batch for /f code work propely -
here file trying read hosts file. reason, it's not workin properly. seek code see error messages.
@echo off cd %windir%/system32/drivers/etc /f "eol=# tokens=* delims=," %%a in (%windir%/system32/drivers/etc/hosts) type %%a pause>nul
type
expects file name. meant echo
. issue, hosts file not comma, whitespace separated. you'll need alter delims include space , tab, assuming want have hostname.
batch-file
Comments
Post a Comment