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

Author Topic: Serious help with BAT?  (Read 18177 times)

0 Members and 1 Guest are viewing this topic.

TNovelist

    Topic Starter


    Rookie

    Serious help with BAT?
    « on: August 29, 2009, 04:05:07 PM »
    Okay, so I'm trying to create a batch file that will run the following path:
    C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\Barney's Asylum Reloaded.exe.

    I tried typing Start then the path name with the spaces and got the error message:

    "'C:\Program' could not be found" (or something similar, I can't remember).

    Then I tried to replace the spaces with %20 and got the error message:

     "'C:\Program0Files\RaycastingGameMaker\GameBitmaps\BBits\Barney's0Asylum0Reloaded.exe' could not be found."

    What code should I use? I hopelessly confused. Someone please help me!

    smeezekitty

    • Guest
    Re: Serious help with BAT?
    « Reply #1 on: August 29, 2009, 04:07:19 PM »
    "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\Barney's Asylum Reloaded.exe"
    thats it
    without anything before it
    and remember to keep the quotes in it

    Helpmeh



      Guru

    • Roar.
    • Thanked: 123
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 8
    Re: Serious help with BAT?
    « Reply #2 on: August 29, 2009, 04:47:43 PM »
    Nice try with the %20, but that won't work with batch (as you've found out), as it only works with URLs. Paths in EXPLORER are technically URLs, which is why %20 would work as a space there, but not in batch.
    Where's MagicSpeed?
    Quote from: 'matt'
    He's playing a game called IRL. Great graphics, *censored* gameplay.

    TNovelist

      Topic Starter


      Rookie

      Re: Serious help with BAT?
      « Reply #3 on: August 30, 2009, 09:00:23 AM »
      "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\Barney's Asylum Reloaded.exe"
      thats it
      without anything before it
      and remember to keep the quotes in it

      Yeah, it didn't work. It flashed a prompt screen and then it disappared. The EXE didn't open. Thanks anyway, though. Also, I am trying to start my EXE, which is a game, in God Mode. Here are the instructions on how to launch the game in God Mode, according to the RayCasting Game Maker:

      "To start the Game in Cheat- Mode it must be started via Command Line Parameter from
      the command prompt or from a batch file:
      Game.exe MyCheatCode"

      Any ideas? I couldn't get it to work through DOS so I thought I'd try a batch file.

      Helpmeh



        Guru

      • Roar.
      • Thanked: 123
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 8
      Re: Serious help with BAT?
      « Reply #4 on: August 30, 2009, 09:15:06 AM »
      Here this should work.

      Start "your path here" cheatcode
      Where's MagicSpeed?
      Quote from: 'matt'
      He's playing a game called IRL. Great graphics, *censored* gameplay.

      TNovelist

        Topic Starter


        Rookie

        Re: Serious help with BAT?
        « Reply #5 on: August 30, 2009, 09:30:21 AM »
        Here this should work.

        Start "your path here" cheatcode

        Okay, so u mean:
        START"C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\Install\Barney's Asylum Reloaded.exe" edomdog

        (edomdog is my cheat code for god mode)

        I got the error message: Windows cannot find the file, "edomdog." Now what should I do?

        Helpmeh



          Guru

        • Roar.
        • Thanked: 123
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Familiar
        • OS: Windows 8
        Re: Serious help with BAT?
        « Reply #6 on: August 30, 2009, 09:34:34 AM »
        Make sure there is a space between START and the " infront of the path.
        Where's MagicSpeed?
        Quote from: 'matt'
        He's playing a game called IRL. Great graphics, *censored* gameplay.

        billrich

        • Guest
        Re: Serious help with BAT?
        « Reply #7 on: August 30, 2009, 09:48:58 AM »

        C:\>cd \

        C:\>dir /s  Reloaded.exe


        C:\>cd \

        C:\>dir /s  edomdog*.*

        TNovelist

          Topic Starter


          Rookie

          Re: Serious help with BAT?
          « Reply #8 on: August 30, 2009, 09:53:36 AM »
          There was a space. When I get rid of the edomdog at the end of the command the batch file takes me to the command prompts and doesn't even open the exe.

          TNovelist

            Topic Starter


            Rookie

            Re: Serious help with BAT?
            « Reply #9 on: August 30, 2009, 10:02:11 AM »
            C:\>cd \

            C:\>dir /s  Reloaded.exe


            C:\>cd \

            C:\>dir /s  edomdog*.*

            I tried this in command prompt, not really sure what to do or what would happen. It definately didn't work as a batch file. Any more ideas?
            « Last Edit: August 30, 2009, 10:15:31 AM by TNovelist »

            billrich

            • Guest
            Re: Serious help with BAT?
            « Reply #10 on: August 30, 2009, 11:06:36 AM »
            I tried this in command prompt, not really sure what to do or what would happen. It definately didn't work as a batch file. Any more ideas?

            use dir /s filename to find correct path to file your batch file cannot find.

            TNovelist

              Topic Starter


              Rookie

              Re: Serious help with BAT?
              « Reply #11 on: August 30, 2009, 11:50:28 AM »
              use dir /s filename to find correct path to file your batch file cannot find.

              I typed in exactly what you wrote and got the error message: Volume i n drive C has no labels.

              billrich

              • Guest
              Re: Serious help with BAT?
              « Reply #12 on: August 30, 2009, 12:28:07 PM »
               

              All the files for you game might not be on your machine. Or your batch file is using the wrong path or file name.

              Are these the two of the files that could not be found when you run the batch? :

              Reloaded.exe and edomdog

              If the game was not installed correctly, the two files might be in a different location on your machine or not on your machine. Install the game again?   Or try a windows's search instead of the command prompt search.

              On XP Pro click start, search ( I use the search companion )
              All or part of the file name: [ reload.exe ]
              or
              All or part of the file name: [ endomdog ]

              When the file or files are found the location will be revealed.  Copy and paste the path to your batch file and run the batch again.

              For a test of the command search and/or the windows  search,  search for a file you know is on the machine and see if search is working.

              We are trying to find the correct path to your files.

              ( the no label for C drive error should not interfere with the search )

              smeezekitty

              • Guest
              Re: Serious help with BAT?
              « Reply #13 on: August 30, 2009, 12:30:45 PM »
              what about
              Code: [Select]
              cd /D "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\"
              "Barney's Asylum Reloaded.exe" "endomdog"

              Salmon Trout

              • Guest
              Re: Serious help with BAT?
              « Reply #14 on: August 30, 2009, 12:34:32 PM »
              what about
              Code: [Select]
              cd /D "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\"
              Barney's Asylum Reloaded.exe "endomdog"

              Missing the quotes off the prog name (it has spaces)