Loading ...
Sorry, an error occurred while loading the content.

Re: [BATCH WORLD] batch to deside in what programfolder to open exe

Expand Messages
  • foxidrive
    ... This is all you need, if you are sure that the file cannot be in both a and b locations. if exist c: program files data a start.exe c: program
    Message 1 of 2 , Mar 28, 2011
    • 0 Attachment
      On 28/03/2011 15:33, epoche2_forum wrote:
      > Hello I am new to this group. I need some help here for this batch.
      >
      > I have on two different locations on several computers a program. I
      > would like to start the program via batch, the batch should recon
      > where the program is ( folder a or folder b) and than start it.
      >
      >
      > I tried this but it tells me it cannot proceed at this point ("if
      > not").


      This is all you need, if you are sure that the file cannot be in both a
      and b locations.



      if exist "c:\program files\data\a\start.exe" "c:\program
      files\data\a\start.exe"
      if exist "c:\program files\data\b\start.exe" "c:\program
      files\data\b\start.exe"
    Your message has been successfully submitted and would be delivered to recipients shortly.