|I have a routine that is looking at all the user profiles on a computer checking to see if certain folders exist. If so delete them. After that is done I want it to call a vbs I have written to install certain things.|
My problem is that it looks at the first users profile checks then runs the vbs script, then looks at the second users profile checks then run the vbs etc....
How can I get it to wait to do the vbs until it has checked all the users profiles, which vary, then go to the vbs.
Here is what I have right now:
::remove extra folders
rmdir /s /q "C:\Program Files\AutoCAD 2008"
rmdir /s /q "C:\Program Files\AutoCAD 2010"
cd /d "%AllUsersProfile%\.."
for /d %%a in (*.*) do call :Del %%a
echo Cleaning up user "%*"
rmdir /s /q "%Docs%\%*\Local Settings\Application Data\Autodesk\AutoCAD 2008"
rmdir /s /q "%Docs%\%*\Local Settings\Application Data\Autodesk\AutoCAD 2010"
cscript "C:\Documents and Settings\tglidewell\Desktop\Install Package.vbs"