CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Batch File

  1. #1
    Guest

    Batch File

    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


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Batch File

    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.


  3. #3
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Batch File

    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
    [email protected]
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  4. #4
    Join Date
    Dec 1999
    Location
    Israel
    Posts
    14

    Re: Batch File

    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.

  5. #5
    Guest

    Re: Batch File

    Thank you very much.
    Please send that file to [email protected].
    I'm Vladimir Chapranov, not Speactor.
    Vlad


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured