• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Does anyone know how to make a batch (*.bat) file?

S

SaintKaden

Guest
#1
I wanna make a batch file that will rename a particular file and execute another, can anyone help?
 

Sazar

F@H - Is it in you?
Staff member
Political User
#2
do you know any batch programming?

its not even programming... just execution of instructions one after the next...
 

Sazar

F@H - Is it in you?
Staff member
Political User
#3
you will hve to put it in the sequence you want it to run or rather execute the commands..

basically you will go something like the following..
please remove the [ ] square brackets though :)

echo off
ren [insert filename to rename] [insert filename you want it to be]
[application filename]

thats it

the application has to be something that will run.. such as a .bat or a .exe file... else it will not work..

you don't need the echo off or on thinger...

thats it
 

Sazar

F@H - Is it in you?
Staff member
Political User
#5
what window ?

one bactch file completes executing all commands... it should close... unless there is a window for a file that you are using..

what exactly are you trying to do anyhoo :)

post the progs and perhaps a .bat file can be posted to help you.. at least the text for it ..
 
S

SaintKaden

Guest
#6
well you see I have this game called "ut2003" (i'm sure you've heard of it) that requires a particular *.dll file when I'm playing it in multiplayer and another when you play singleplayer.

Now they are both the same file, only one is tweaked to enable multiplayer functions while disabling the karma engine which looks very cool...

So with your help, what I set out to do was create two shortcuts one for a singleplayer and another for multiplayer. Both linked to *.bat files containg the following:

MP - bat

@echo off
copy Engine_nokarma.dll Engine.dll
ut2003.exe

SP - bat

@echo off
copy Engine_karma.dll Engine.dll
ut2003.exe

now aside from the bat files I also threw in copies of the file named as follows:

Engine_karma.dll
Engine_nokarma.dll

this works, but the command window that pops up, stays up even after I quit the game, I mean it closes but only after a while...

Is there a command to kill that windows instantly?
 

Sazar

F@H - Is it in you?
Staff member
Political User
#7
SORRY... not sure about that... normally when I made batch files back in the days of win95 and win98 I had no problems with the comman window closing...

I dunno.. try putting and END or something.. can also look up some sites concerning batch files... and you are on your way..
 

Members online

No members online now.

Latest posts

Latest profile posts

Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,014
Latest member
sanoravies