Home / Microsoft / Microsoft DOS / Serious help with BAT?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 4  All - (Bottom) Print
Author Topic: Serious help with BAT?  (Read 3947 times)
TNovelist
Topic Starter
Rookie



Posts: 14


« 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!
IP logged
smeezekitty
Newcomer



Thanked: 44
Posts: 0


« 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
IP logged

Acer extensa 463oz
2 gb ram
160gb hdd
2ghz processor
and desk fan sitting next to it for cooling :)
Helpmeh
Egghead



Thanked: 117
Posts: 3,608

Experience: Experienced
OS: Windows XP


Roar.

1
« 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.
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
TNovelist
Topic Starter
Rookie



Posts: 14


« 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.
IP logged
Helpmeh
Egghead



Thanked: 117
Posts: 3,608

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #4 on: August 30, 2009, 09:15:06 AM »

Here this should work.

Start "your path here" cheatcode
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
TNovelist
Topic Starter
Rookie



Posts: 14


« 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?
IP logged
Helpmeh
Egghead



Thanked: 117
Posts: 3,608

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #6 on: August 30, 2009, 09:34:34 AM »

Make sure there is a space between START and the " infront of the path.
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
billrich
Guest
« Reply #7 on: August 30, 2009, 09:48:58 AM »


C:\>cd \

C:\>dir /s  Reloaded.exe


C:\>cd \

C:\>dir /s  edomdog*.*
IP logged
TNovelist
Topic Starter
Rookie



Posts: 14


« 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.
IP logged
TNovelist
Topic Starter
Rookie



Posts: 14


« 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 » IP logged
billrich
Guest
« 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.
IP logged
TNovelist
Topic Starter
Rookie



Posts: 14


« 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.
IP logged
billrich
Guest
« 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 )
IP logged
smeezekitty
Newcomer



Thanked: 44
Posts: 0


« 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"
IP logged

Acer extensa 463oz
2 gb ram
160gb hdd
2ghz processor
and desk fan sitting next to it for cooling :)
Salmon Trout
Sage



Thanked: 546
Posts: 7,952

Computer: Specs
Experience: Beginner
OS: Unknown

1
« 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)
IP logged


Proud to be European
Pages: [1] 2 3 4  All - (Top) Print 
Home / Microsoft / Microsoft DOS / Serious help with BAT? « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.109 seconds with 20 queries.