execute a batch file from command button

Jacob Mathai

Registered User.
Local time
Today, 20:57
Joined
Sep 6, 2001
Messages
546
Can someone please show me how to execute a batch file from ACCESS command button?
 
Try this...

-----------
Dim str, dimshell

str = "c:\batfile.bat"
dimshell = Shell(str, 1)
-----------

The 1 indicates that the shelled file gets normal focus. Search help for Shell for a full list of options.

js

[This message has been edited by jstutz (edited 10-04-2001).]
 
Thanks. It worked
 

Users who are viewing this thread

Back
Top Bottom