10/22/2009 2371 views
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.

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


Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

All Answers

I think I got it.
Answered 10/22/2009 by: abking99
Second Degree Blue Belt