Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

START batch command

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Shakizi

Shakizi
  • Member
  • 1 posts
  • Joined 16-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
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)


How to remove advertisement from MSFN

#2
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,557 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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

)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users