the Shell Command
Shell("C:\map.bat", vbHide) will run it without showing the DOS window.
Shell("C:\map.bat" will run it in a visible window
also, since it is a function you need to assign the ruturn code to a variable
Dim RetCode
RetCode = Shell("C:\map.bat" Ruairi
Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
If you activate the Scripting Library reference you can run most of the DOS commands( like copy files )directly from a line of VB code without having to use a DOS window.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.