Page 1 of 1

MS DOS programming

Posted: Sun Feb 04, 2007 10:38 am
by shade...
hey!

i was wondering, in the star wars battlefront mod tools there are things like soundclean.bat, right?

i tried editting a bat and creating my own ms dos programming. didnt work.

i made this example on the notepad and saved it as addonfolder.bat:

Code: Select all

@goto C:\Program Files\Lucasarts\Star Wars Battlefront II\GameData\Addon

(then i saved)
It doesnt work.




All i need to figure out is how to create a shortcut using programming. Can anyone help? whats the codes?
i only need to know how to make a shortcut and ill do the rest from there.

OR. i could use the editlocalize dos. ill get everything off that

RE: MS DOS programming

Posted: Sun Feb 04, 2007 11:27 am
by Darth_Z13
Maybe you should read this and this to help you. Also, not certain (it's actually just a guess) but I think the @ symbol negates the command. Not sure though.

RE: MS DOS programming

Posted: Sun Feb 04, 2007 12:55 pm
by t551
Additionally, it is most likely working, just not in the way you expect. A window pops up for a split second, right?

Executing the batch brings up an instance of cmd.exe that starts in the location you specify, but since you haven't told it to do anything, it shuts down immediately afterward.

RE: MS DOS programming

Posted: Sun Feb 04, 2007 3:14 pm
by [RDH]Zerted
The window closes then the program is finished. There are a few ways to keep it open. The quickest way is to put "pause" (without the quotes) as the last line. This will pause the program and keep it open until you press any key.

Re: RE: MS DOS programming

Posted: Sun Feb 04, 2007 5:49 pm
by shade...
[RDH]Zerted wrote:The window closes then the program is finished. There are a few ways to keep it open. The quickest way is to put "pause" (without the quotes) as the last line. This will pause the program and keep it open until you press any key.
thanks for the tip-
Darth_Z13 wrote:Maybe you should read this and this to help you. Also, not certain (it's actually just a guess) but I think the @ symbol negates the command. Not sure though
thanks for that too :D

RE: Re: RE: MS DOS programming

Posted: Sun Feb 04, 2007 6:00 pm
by ShadowHawk
Moved to technical advice...

Re: RE: Re: RE: MS DOS programming

Posted: Mon Feb 05, 2007 4:33 pm
by shade...
ShadowHawk wrote:Moved to technical advice...
huh? :shock:

RE: Re: RE: Re: RE: MS DOS programming

Posted: Mon Feb 05, 2007 5:11 pm
by Darth_Z13
He moved the topic to technical advice forum. You were asking for technical advice. :roll: