Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

synchronous shelling in VB

  • 09-02-2004 01: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