A Question About Echo Command
Posted: 14 Jan 2014 22:52
dear all,
I'm confused by command 'echo'.
I want to create a batch file with a script:
I want to get a script as below:
How should I change the first script?
Thank you all in advance.
I'm confused by command 'echo'.
I want to create a batch file with a script:
::Create Boot.bat
echo @echo off >> D:\Boot\Boot.bat
echo ping 127.0.0.1 -n 1 >nul >> D:\Boot\Boot.bat
echo tasklist ^| find /i "gpupdate.exe" >> D:\Boot\Boot.bat
echo if %errorlevel%==0 taskkill /f /im gpupdate.exe >> D:\Boot\Boot.bat
I want to get a script as below:
@echo off
ping 127.0.0.1 -n 1 >nul
tasklist | find /i "gpupdate.exe"
if %errorlevel%==0 taskkill /f /im gpupdate.exe
How should I change the first script?
Thank you all in advance.