Anyone have a code sniplet to execute at BAT file in VB Code? The SHELL command appears to be lacking for me.
Thanks so much.
Printable View
Anyone have a code sniplet to execute at BAT file in VB Code? The SHELL command appears to be lacking for me.
Thanks so much.
I tried this using the Shell command and it worked.
Code:Private Sub Command1_Click()
retval = Shell("C:\Autoexec.bat", vbNormalFocus)
End Sub
Wierd...it wasn't working for us on an NT workstation. We did find another route using CMD that seems to be working though. Thanks anyway.