Link to home
Start Free TrialLog in
Avatar of Wrathorne
Wrathorne

asked on

How to call a bat file

I am designing a program to do a discopy from one drive to another of same size.  I feel the file manipulation within VB would be time comsuming.  I am thinking on the line of a bat file for discopy command from dos to achieve this task. I am  not sure how to call a bat file through VB.  Your help would be appreciated.  If you know of a book that would be helpful please give the title and I will reference it.  

Thank you for your time.
ASKER CERTIFIED SOLUTION
Avatar of Torus
Torus

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Torus
Torus

you can also use shell to run your bat file also

call shell("YourbatFile.bat", vbNormalFocus)
Better than Shell we have the all time usefull API shellexecute
Avatar of Wrathorne

ASKER

Adjusted points to 400