Jump to content

About Batch files


Recommended Posts

<BLOCKQUOTE>quote:</font><HR>Originally posted by KnockOnWood:

This is probably a stupid question but is it difficult to write batchfiles for mods? How is it done, c++, VB? Is there any sourcecode available or any tutorial or something? I would be happy for any answers you can come up with.

Take Care!<HR></BLOCKQUOTE>

It's a text file. You can make one in notepad. Just give it the .bat extension. It uses the old DOS command line so you'll have to dig up an old DOS manual. You're better off opening a batch file that someone else has already done and learn from that.

Link to comment
Share on other sites

<BLOCKQUOTE>quote:</font><HR>Originally posted by KnockOnWood:

This is probably a stupid question but is it difficult to write batchfiles for mods? How is it done, c++, VB? Is there any sourcecode available or any tutorial or something? I would be happy for any answers you can come up with.

Take Care!<HR></BLOCKQUOTE>

Batch files are precisely text files with a list of DOS commands.

For example, a bat file might look like:

cd\mydir

ren myfile.txt myfile.tmp

ren myfile.old myfile.txt

ren myfile.tmp myfile.old

Something simple like that would automatically 'switch' 2 files that you want to have the same name. Its the same as manually typing the commands in DOS, its just automatic.

Link to comment
Share on other sites

×
×
  • Create New...