MSFN Forum: START batch command - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

START batch command Rate Topic: -----

#1 User is offline   Shakizi 

  • Group: Members
  • Posts: 1
  • Joined: 16-December 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 December 2011 - 04:42 PM

Any idea why this won't work?

@echo off
IF 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)


#2 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,364
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 17 December 2011 - 12:01 AM

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")
)


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy