Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

synchronous shelling in VB

Options
  • 09-02-2004 1:52pm
    #1
    Closed Accounts Posts: 28


    I'm trying to do something simple with a shell - just calling a batch file, and when it finishes, return to the vb code. Only problem is i dont know how to do this. I searched the internet about it, and found something useful here, but i dont know how to use it, cos i'm new to programming. At the moment my code says something like this:
    Dim retvaL
    retvaL = Shell("c:\123.bat", 0)
    MsgBox "Done!"

    Any idea what i have to change this to to make it synchronous?


Advertisement