Computer Hope
Microsoft => Microsoft DOS => Topic started by: TNovelist 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!
-
"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
-
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.
-
"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.
-
Here this should work.
Start "your path here" cheatcode
-
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?
-
Make sure there is a space between START and the " infront of the path.
-
C:\>cd \
C:\>dir /s Reloaded.exe
C:\>cd \
C:\>dir /s edomdog*.*
-
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.
-
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?
-
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.
-
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.
-
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 )
-
what about
cd /D "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\"
"Barney's Asylum Reloaded.exe" "endomdog"
-
what about
cd /D "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\"
Barney's Asylum Reloaded.exe "endomdog"
Missing the quotes off the prog name (it has spaces)
-
good catch salmon
-
good catch salmon
(http://www.bfishing.com/fish_photo.jpg)
-
LOL
-
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 )
I tried the search and the only thing that came up was the batch file. I didn't install the game, either. I made the game. It only requires two files to run: a game.pak file and an exe file. I even put the batch file in the same folder as the other two files. It's still not working!
-
It seems the complete name of one your file that your batch file cannot find is : Barney's Asylum Reloaded.exe.
The command line search or the windows search can find the file with a wildcard: Barn*Reloaded.exe
cd \ to the root directory
C:\>dir /s Barn*Reloaded.exe.
-
Post your batch file.
__________________________________
When you cd to where the game is, will the game run without a batch file?
Has the game ever played? Why do you need a batch file?
-
I need a batch file or a command line (see earlier in the thread) in order to run the game in god mode. and yes the game has played before, just not in god mode.
-
i still think this
cd /D "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\"
"Barney's Asylum Reloaded.exe" "endomdog"
should work
-
i still think thiscd /D "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\"
"Barney's Asylum Reloaded.exe" "endomdog"
should work
There should not be quotes around endomdog.
-
it doesnt matter because the command prompt auto filters it out
-
it doesnt matter because the command prompt auto filters it out
no it doesn't.
-
try it with and without
sorry for the double post internet acting funny
-
Put this into notepad.
@echo %1
Save it. Drag the newly created script to the command prompt and add "hi" after it. See if it filters it out.
-
echo does not filter but i think it does for programs
-
As said many times before "YOU THOUGHT WRONG!". I mean this in a much nicer way. Echo is a program anyway. Try running echo.exe "hi" at the command prompt.
-
The program parses the arguments passed- this is why older programs cannot understand quotes.
the C-runtime - in fact, most any runtime - parses the command line into a array- it takes quotes into account.
batch files are run by cmd and it parses the command line appropriately.
-
[quote author=Helpmeh link=topic=90793.msg615107#msg615107 date=1251842577]
As said many times before "YOU THOUGHT WRONG!". I mean this in a much nicer way. Echo is a program anyway. Try running echo.exe "hi" at the command prompt.
[/quote]
echo isnt a program its a shell command[code]
echo.exe hello
comes out asexe hello
[/code]
-
helpmeh.... echo isn't a program, it's an internal command...
-
Well there go all my theories about how babies are made. I was really sure they are implanted as seeds through the bellybutton.
-
Well there go all my theories about how babies are made. I was really sure they are implanted as seeds through the bellybutton.
well... their implanted through seeds, but not through the belly button. :-X
EDIT:
besides, everybody knows you allocate children.
Dim X as Baby
Set X = new Baby
X.SetParent Me,PARENT_FATHER
Baby.Burp()
Baby.Change()
If Me.AggravationLevel > Me.MaximumAggravationlevel then
Baby.ShoveInCloset()
End If
-
Well there go all my theories about how babies are made. I was really sure they are implanted as seeds through the bellybutton.
time to get back on the topic
as i said
cd /D "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\"
"Barney's Asylum Reloaded.exe" "endomdog"
should work perfectly because the C runtime will parse out the "s
-
well... their implanted through seeds, but not through the belly button. :-X
EDIT:
besides, everybody knows you allocate children.
Dim X as Baby
Set X = new Baby
X.SetParent Me,PARENT_FATHER
Baby.Burp()
Baby.Change()
If Me.AggravationLevel > Me.MaximumAggravationlevel then
Baby.ShoveInCloset()
End If
Shouldn't it be
Baby.PutInGarbagebag()
in the IF?
-
int main(void){
bc_programmer.stop_fooling_around();
Helpmeh.stop_fooling_around();
return (false);
}
i am fairly sure you scared the orig poster off
-
you forgot to cast us to the common interface type before calling the abstract virtual "stop_fooling_around" function.
-
oh i see
int main(void){
((crazy_poster *)bc_programmer).stop_fooling_around();
((crazy_poster *)Helpmeh).stop_fooling_around();
return (false);
}
i am fairly sure you scared the orig poster off
-
Now in batch!
If "%babystat%" EQU "crying" shake BABY
-
how about in asm
jmp start
shake_baby:
call shakebaby
start:
cmp [baby],crying
je shake_baby
-
shake_baby should be executed in a loop, to prevent race conditions with the mother object.
-
As said many times before "YOU THOUGHT WRONG!". I mean this in a much nicer way. Echo is a program anyway. Try running echo.exe "hi" at the command prompt.
Echo is not an exe. It is an internal command.
C:\>echo.exe hi
exe hi
-
Lol.
If Mother.see Me.shakeBaby then CreateNew.WooshingSound
End If
I don't know what language that could be in. Vb maybe?
-
Lol.
If Mother.see Me.shakeBaby then CreateNew.WooshingSound
End If
I don't know what language that could be in. Vb maybe?
or C# or C++ (classes)
-
time to get back on the topic
as i said
cd /D "C:\Program Files\RaycastingGameMaker\GameBitmaps\BBits\"
"Barney's Asylum Reloaded.exe" "endomdog"
should work perfectly because the C runtime will parse out the "s
Yeah, everytime i try these codes they open a command prompt briefly and then it closes and no programs open? Any more ideas????
-
everytime i try these codes they open a command prompt briefly and then it closes and no programs open
smeezekitty is such an expert, (we are all in his thrall) I'm surprised his code does that!
-
FINALLY! I FIGURED OUT HOW IT'S DONE!!!!!!!!!!! Okay, everyone listen close. I saved the BAT in the same folder with the game, edited the file name, and I entered into the bat:
start BAR.exe edomdog
IT WORKED! THANKS ANYWAY FOR ALL YOUR CONSIDERATION THOUGH!
-
I saved the BAT in the same folder with the game
4 pages. ::)
-
4 pages. ::)
Look, I'm sorry. I just screwed up again. I tried making a copy of the bat file and reediting the code in it to make my game run fullscreen and I changed the names of the bat. Now it says, "BAT.exe not found." when I try and run it. So I guess this forum thread isn't over.
-
Sorry, just fixed it again. There was a space in the file name.
-
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?
Put edomdog inside quote marks after Barney's Asylum Reloaded.exe.
EDIT: Ooo I posted this a bit late.