Visual Basic scripting

5 pts.
Tags:
Batch files
VBScript
how can i run batch files using vb scripting


Software/Hardware used:
notpad
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can execute a BAT script this way:

<pre>Set WSHShell = CreateObject(“Wscript.Shell”)
WSHShell.Run (“path\to\your\batch_script.bat”) </pre>

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • sbez742
    Interesting. Anyone batch too JCL from VB, with Oracle or DB2, RDB?
    40 pointsBadges:
    report
  • bhannah
    I used to run scripts, batch files, and VB Modules inside of MS Access. They would go out, Query a DB2 database, grab the queried data, import it into an MS Access Database manipulate it, and output to a report.
    4,580 pointsBadges:
    report
  • ToddN2000
    Yes, are you having issues with some code you wrote? Post it as well as any error messages and we can help you fix any errors you may have.
    132,840 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: