Results 1 to 3 of 3

Thread: Executing DOS .BAT files.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    25

    Post

    Hey,

    I'm sure that this is simple as well. So simple in fact that I have searched this BB back about a hundred posts, but no answer for this.
    How do I execute a DOS .BAT file. I am already using the shell(path) but I'll bet that I'm using it wrongly. Please help with syntax.

    Also, can I write a .BAT file just like I would a .TXT?


    ------------------
    Thanks,
    MiDaWe

  2. #2
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    1.)
    You can use the Shell function like:

    Shell "c:\autoexec.bat"

    or you can use the ShellExecute API call.

    2.) Yes, open a .bat file the same way and write to it the same way as a txt file.

    ------------------
    Tom Young, 14 Year Old
    [email protected]
    ICQ: 15743470 Add Me ICQ Me
    AIM: TomY10
    PERL, JavaScript and VB Programmer

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    25

    Post

    Thank you. Thank you. Thank you.

    Short simple and to the point just the way that I like it : )


    ------------------
    Thanks,
    MiDaWe

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