You are not logged in.
Pages: 1
Hello, I am trying to get :ErrorAssociation to echo each token in the variable %VerifyALL%, but of course %%i only contains the first token. Is there a way that each time the for loop iterates, it can put the next token in the parameter %%i so that calling the :ErrorAssociation subroutine is simple?
:Verification
echo verifying all
Set VerifyALL=WriteuserAccount,RenameComputer,WriteDefaultPrinter,WakeTask-1031pm,PowerConfig-Staff,InstallAnti-Virus_Ent_64-bit,Win7licenseactivation,Office2013KMSactivation,faronicsavlic,UnReReg_authenticated,AVECLIupdatedefs,AVECLIFixNowQuick,SetDefaultPrinter
For /F "tokens=1-13 delims=," %%i IN ( "%VerifyALL%" ) Do Call :ErrorAssociation %%i
exit /b
:ErrorAssociation
echo %1
exit /b
Thanks ahead for any ideas / help!
Offline
If each token in the variable does NOT contain spaces, semicolons or equal signs (that is the case of your example), a plain FOR do the work:
For %%i IN ( %VerifyALL% ) Do Call :ErrorAssociation %%i
Antonio
Offline
I knew I was missing something simple... Thank you Antonio!!!
Offline
Pages: 1