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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -