read bat file script
Please help to understand to read below code. I got it in a very big lengthy bat file, which uninstalls and installs symantec antivirus. I have to create vbscript, for it. "For /f, tokens=2", this is something difficult to understand.
verify>nul
tasklist | find /i "SMC.EXE" > "%windir%\system32\SEP_Migrate\Sygate_Uninstall\SMC_PID.txt"
FOR /F "tokens=2" %%R IN ('TYPE "%windir%\system32\SEP_Migrate\Sygate_Uninstall\SMC_PID.txt"') DO SET SMC_ID=%%R
call "%windir%\system32\SEP_Migrate\launcher_drwtsn_kill.bat.vbs"
::start "%windir%\system32\SEP_Migrate\drwtsn_kill.bat"
drwtsn32 -p %SMC_ID%
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.