Click to See Complete Forum and Search --> : Batch File


February 3rd, 2000, 08:33 AM
Although I'm progamming VB for several years, I've never used *.bat files. Maybe because I've never worked directly with DOS. Where can I get some info about set of commands, syntax in *.bat file and so on? I checked MSDN and found almost nothing. Do I need to read DOS books?
Thank you.
Vlad

Lothar Haensler
February 3rd, 2000, 08:36 AM
IMHO you'd better check out Windows Script(ing) Host.
That tool allows you to write BATCH programs in VBScript or Jscript.
You can download WSH from the MS Site.
It gives you much more control over error handling, conditional execution and so on than the Batch language.

Cakkie
February 3rd, 2000, 08:40 AM
DOS batch fies are mainly just a sequence of dos commands(or even windows when running in a dosbox)

eg:

@echo off
cd c:\
echo Renaming *.dat into *.txt
ren *.dat *.txt

this is a simple batch that renames all dat files in c:\ into txt
For more details about the commands, use the help command (if available) or type the command vith the parameter /? ( like dir /? )

Tom Cannaerts
slisse@planetinternet.be

Nitzan Aviram
February 3rd, 2000, 02:30 PM
Hi
I have a file("help.com" - u can get from dos 6.22 library) that has infomation(including examples) about all af the batch files commands.
email me and Iwll send u...
by the way r u vlad speactor?

Form Niztan Aviram.
Any help whould be highly appreciated.

February 3rd, 2000, 04:18 PM
Thank you very much.
Please send that file to chapran@earthlink.net.
I'm Vladimir Chapranov, not Speactor.
Vlad