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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now