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.
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
drwtsn32 -p %SMC_ID%
so that the conversation will remain readable.