Shakizi Posted December 16, 2011 Posted December 16, 2011 Any idea why this won't work?@echo offIF EXIST "E:\hehe\AllZIPS\PRet.bat" (START /d "E:\hehe\AllZIPS\PRet.bat" 2>NUL)IF EXIST "F:\hehe\AllZIPS\PRet.bat" (START /d "F:\hehe\AllZIPS\PRet.bat" 2>NUL)IF EXIST "G:\hehe\AllZIPS\PRet.bat" (START /d "G:\hehe\AllZIPS\PRet.bat" 2>NUL)IF EXIST "H:\hehe\AllZIPS\PRet.bat" (START /d "H:\hehe\AllZIPS\PRet.bat" 2>NUL)IF EXIST "I:\hehe\AllZIPS\PRet.bat" (START /d "I:\hehe\AllZIPS\PRet.bat" 2>NUL)
Yzöwl Posted December 17, 2011 Posted December 17, 2011 The comand you are using is incorrect, have you typed in START /? at the command prompt to understand the switch you have used?FOR %%A IN (E F G H I) DO ( IF EXIST "%%A:\hehe\AllZIPS\PRet.bat" (START "" /WAIT "%%A:\hehe\AllZIPS\PRet.bat"))
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now