Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-22-2002, 01:25 AM   #1
Member (11 bit)
 
Join Date: Jan 2002
Location: british columbia canada
Posts: 1,361
batch files

hello
was wondering about batch files i did look at the link dr.z had on another thread.i was wondering in what situation you can use this if someone has an example of how they use it.i could not figure out from that sight what to do or what situation you could use a batch file.what do you wrire it in notepad?sorry this is coming from a complete newbie on any languages.
newme is offline   Reply With Quote
Old 07-22-2002, 06:24 AM   #2
Telcom Tech
 
ktkendall's Avatar
 
Join Date: Feb 2002
Location: Western, Pa.
Posts: 5,409
You could write one in notepad and save it as XXXXXXXX.BAT, or use the built in windows editor, from command line type edit XXXXXXXX.bat and make your file. You use them when you want a series of commands executed one after another automatically. It's not really programming like actually writing a program, but it just a way to execute multipule commands automatically. EX. One of the voice mail machines we sell uses a batch file every night for its nightly maintenence routines. I go in to that file and can just add a line for backing up the machine to whatever nights batch file I want the machine to execute backups as part of its nightly routine. This one uses a seperate BAT file for each night. monday.bat, tuesday.bat etc.
You still need the actual program to call up the BAT file though if you want it to be automatic, just like Windows 9.X will look automatically for autoexec.bat upon startup and execute anything in there for your dos programs to work.
__________________
If it ain't broke, "TWEAK IT"
ktkendall is offline   Reply With Quote
Old 07-22-2002, 08:40 AM   #3
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
I have a batch file here that creates the host file for every machine logging on. If a machine logs on here and doesn't have this host file we often have many interesting problems. Everytime a user logs on the batch file is executed.
HackinCowboy is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:20 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2