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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -