Results 1 to 7 of 7

Thread: VB file question

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2002
    Location
    VA
    Posts
    33

    Post VB file question

    building an interface to a perl program and have the following requirements.

    Batch file on NT starts the perl program. This batch file changes regularly so I have created interface to make this file taking inputs from my vb form.

    Now... I am stumped on how to execute this .bat from within vb using a command button to run the batch file.

    Any suggestions, code samples would be helpful.

    Thanks,

    jchannel

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. Private Sub Command1_Click()
    2.     Shell "c:\test.bat"
    3. End Sub
    -= a peet post =-

  3. #3
    Armbruster
    Guest
    VB Code:
    1. Private Sub Comand1_Click()
    2.      Shell "c:\mybatch.bat"
    3. End Sub

  4. #4
    Armbruster
    Guest
    Damn peet, you type faster than me!

  5. #5
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    hehe got meself a brand new self-lubricating KeyTroxicon XTG1250 keyboard

    Last edited by peet; Jan 29th, 2002 at 03:30 PM.
    -= a peet post =-

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Don't feel bad Armbruster. Peet beats EVERYBODY to the posting punch!

  7. #7

    Thread Starter
    Member
    Join Date
    Jan 2002
    Location
    VA
    Posts
    33
    Thanks

    I ended up using App_path and shell together.

    I was doing something wrong with the shell for some reason and couldn't get it to work.

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