MS DOS programming

How To's, Questions, and Solutions for problems. This covers anything from computer hardware problems to software recommendations to tutorials for various software programs.

Note: Neither Gametoast nor any of its members/visitors are responsible for any damage to your computer as a result from advice given in this forum. Follow advice at your own risk and be sure to back up any important files.

Moderator: Moderators

Post Reply
shade...

MS DOS programming

Post 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
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

RE: MS DOS programming

Post 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.
t551
General
General
Posts: 791
Joined: Sat Jul 16, 2005 3:23 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: MS DOS programming

Post 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.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: MS DOS programming

Post 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.
shade...

Re: RE: MS DOS programming

Post 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
User avatar
ShadowHawk
Old School Staff
Posts: 1232
Joined: Mon Feb 21, 2005 4:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Heartland, Texas
Contact:

RE: Re: RE: MS DOS programming

Post by ShadowHawk »

Moved to technical advice...
shade...

Re: RE: Re: RE: MS DOS programming

Post by shade... »

ShadowHawk wrote:Moved to technical advice...
huh? :shock:
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

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

Post by Darth_Z13 »

He moved the topic to technical advice forum. You were asking for technical advice. :roll:
Post Reply