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   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


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

Please log in to comment