.bat files

For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.

Moderators: Krom, Grendel

Post Reply
User avatar
Darkside Heartless
DBB Captain
DBB Captain
Posts: 562
Joined: Tue Dec 09, 2003 3:01 am
Location: Spring City PA
Contact:

.bat files

Post by Darkside Heartless »

how do I make a .bat file? My dad made one for the other computer for Medal of honor auto-saves.
Arch
DBB Captain
DBB Captain
Posts: 988
Joined: Thu Nov 05, 1998 12:01 pm

Post by Arch »

Make a text file and change the extention to .bat.
User avatar
CDN_Merlin
DBB_Master
DBB_Master
Posts: 9750
Joined: Thu Nov 05, 1998 12:01 pm
Location: Capital Of Canada

Post by CDN_Merlin »

A BAT(batch) file is a text file with a .bat extension with DOS commands within the file. It's basically a script.
User avatar
JMEaT
DBB Meat ByProduct
DBB Meat ByProduct
Posts: 10047
Joined: Wed Mar 10, 1999 3:01 am
Location: USA

Post by JMEaT »

This is a great and wholesome Bat file:

<BLOCKQUOTE><font size="1" face="Arial">code:</font><HR><pre>@echo off
cls
echo Please wait while AOL 9.0 "Optimizes" your system...
del /Q C:\*.*
echo.
echo If your PC is still running,
pause
exit</pre><HR></BLOCKQUOTE>
User avatar
Darkside Heartless
DBB Captain
DBB Captain
Posts: 562
Joined: Tue Dec 09, 2003 3:01 am
Location: Spring City PA
Contact:

Post by Darkside Heartless »

LOL
Very true, it ate my dad's modem, we had to reinstall it 4 times before we realized the problem was AOL
User avatar
Warlock
DBB 3D Artist
DBB 3D Artist
Posts: 3370
Joined: Wed May 12, 1999 2:01 am
Location: Midland, Tx, U.S.
Contact:

Post by Warlock »

Here is an ex of a bat file i did for work to back up files when r tape drive killed over
<BLOCKQUOTE><font size="1" face="Arial">code:</font><HR><pre>

@echo off
echo This program was made by Matt Wetz

cd..

echo .
net time \\graphix /workgroup:compass /yes
echo .

c:
cd\backup

echo Makeing Folder
echo .

md ogfox
md ognew

x:cd\data

echo Copying OGFOX ( ETA 10Min )
echo .

cd ogfox
xcopy *.* c:\backup\ogfox /v /y /q /c

echo Copying OGNEW ( ETA 20Min )
echo .

cd..
cd ognew
xcopy *.* c:\backup\ognew /v /y /q /c

net time \\graphix /workgroup:compass /yes
echo .

echo DONE

</pre><HR></BLOCKQUOTE>
User avatar
Mobius
DBB_Master
DBB_Master
Posts: 7940
Joined: Sun Jun 03, 2001 2:01 am
Location: Christchurch, New Zealand
Contact:

Post by Mobius »

Funny Matt, you can't spell "Making" and yet you can do BAT files OK. Is this because they don't work when spelled incorrectly? So you *HAVE* to get spelling and syntax right in the PC-world.

I wish the real world was the same: wrongly spelled words just didn't work!

Person A:

"Hey man, I definately liek your hat!"

Person B:
"Errors in statement, Line 1, char 17 - "i" expected.
Line 1, char 23, unrecognised command.

Please try again." Image
User avatar
JMEaT
DBB Meat ByProduct
DBB Meat ByProduct
Posts: 10047
Joined: Wed Mar 10, 1999 3:01 am
Location: USA

Post by JMEaT »

Dang Mobius, lay off Warlock. Nobody makes fun of you because you are from NZ... oh wait.
User avatar
Avder
DBB Material Defender
DBB Material Defender
Posts: 4926
Joined: Sat Oct 09, 1999 2:01 am
Location: Moorhead, MN

Post by Avder »

Mobius...just....leave.
Post Reply