Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Simple Batch File Help.  (Read 5111 times)

0 Members and 1 Guest are viewing this topic.

zviper

    Topic Starter


    Starter

    Simple Batch File Help.
    « on: March 07, 2008, 01:59:11 AM »
    I want to load one program and have it wait for a confirmation to load the next program. i know absolutely nothing about dos at all

    but here are my directorys i need them to be,
    C:\pbsetup.exe
    E:\COD4\iw3mp.exe

    blastman



      Hopeful

      Re: Simple Batch File Help.
      « Reply #1 on: March 07, 2008, 04:18:01 AM »
      I take it this is from win xp command prompt....


      type 'start /?' and have a read. take specail attention to the /wait switch.

      If you wanted to add errorlevel caputre to your batch, type 'if /?' at the command prompt.

      You could do if /i %errorlevel% GTR 0 (goto fail) else goto next.


      Just something to get you thinking................
       ;)

      Blastman, you are the man. Thank You Very Much!!!!!!!!!



      Dias de verano

      • Guest
      Re: Simple Batch File Help.
      « Reply #2 on: March 07, 2008, 04:47:47 AM »
      I want to load one program and have it wait for a confirmation to load the next program. i know absolutely nothing about dos at all

      but here are my directorys i need them to be,
      C:\pbsetup.exe
      E:\COD4\iw3mp.exe


      Did you mean you want the batch file to start pbsetup.exe and get the user to do some stuff and exit from that program (close it down) and then, and only then, start up iw3mp.exe?

      If so you want to something like this

      start /wait "" "C:\pbsetup.exe"

      REM This line and the next 4 lines are optional
      echo Finished PBSETUP
      echo Ready to start IW3MP
      echo Press a key when you are ready
      PAUSE>nul

      start /wait "" "E:\COD4\iw3mp.exe"

      echo All finished





      zviper

        Topic Starter


        Starter

        Re: Simple Batch File Help.
        « Reply #3 on: March 07, 2008, 10:32:11 AM »
        that kinda worked. its runs the first exe. then when it tries to run the second exe, my game errors out when i try and launch it.

        is there a possibility that a shortcut can be launched instead of the iw3mp.exe ?

        blastman



          Hopeful

          Re: Simple Batch File Help.
          « Reply #4 on: March 07, 2008, 10:42:01 AM »
          try it and find out.......

          Blastman, you are the man. Thank You Very Much!!!!!!!!!



          zviper

            Topic Starter


            Starter

            Re: Simple Batch File Help.
            « Reply #5 on: March 07, 2008, 11:17:44 AM »
            i dont know anything about dos.... :(

            Dias de verano

            • Guest
            Re: Simple Batch File Help.
            « Reply #6 on: March 07, 2008, 11:19:04 AM »
            i dont know anything about dos.... :(

            Well, it's up to you to change that.

            zviper

              Topic Starter


              Starter

              Re: Simple Batch File Help.
              « Reply #7 on: March 07, 2008, 01:18:56 PM »
              I'm asking for some help to make a simple batch file, the least you could do is point me to the right info

              Dias de verano

              • Guest
              Re: Simple Batch File Help.
              « Reply #8 on: March 07, 2008, 01:28:53 PM »
              You got the right info. A little suggestion: lose the attitude. If the batch file is that "simple", how come you haven't written it yourself already?


              « Last Edit: March 07, 2008, 01:43:23 PM by Dias de verano »