Jul 7, 2005 #1 SlakeB MIS Jun 15, 2005 40 US How can I do this? I know how to call a .vbs file: Call Shell("wscript.exe " & "myVBS.vbs", vbMaximizedFocus) How can I call a .bat file instead?
How can I do this? I know how to call a .vbs file: Call Shell("wscript.exe " & "myVBS.vbs", vbMaximizedFocus) How can I call a .bat file instead?
Jul 7, 2005 1 #2 PHV MIS Nov 8, 2002 53,708 FR Call Shell(Environ("COMSPEC") & " /C myBAT.bat", vbMaximizedFocus) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Call Shell(Environ("COMSPEC") & " /C myBAT.bat", vbMaximizedFocus) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Jul 7, 2005 #3 earthandfire Programmer Mar 14, 2005 2,924 GB Shell should recognise known file types so: Shell myBAT.bat or Shell myBAT.bat, vbMaximizedFocus would be sufficient Out of interest PHV, why would you want to use /C and vbMaximizedFocus - in fact, why use vbMaximizedFocus at all when running a Batch File? Hope this helps. Upvote 0 Downvote
Shell should recognise known file types so: Shell myBAT.bat or Shell myBAT.bat, vbMaximizedFocus would be sufficient Out of interest PHV, why would you want to use /C and vbMaximizedFocus - in fact, why use vbMaximizedFocus at all when running a Batch File? Hope this helps.