Running a batch file from command prompt using VBA

msalem

Registered User.
Local time
Today, 14:41
Joined
Feb 7, 2008
Messages
24
Hi,

I know this can be done but I'm a novice at VBA. I have a batch file AutoLoop.bat which I run from command prompt at the moment. The idea is to run a VBA routine behind the onClick event of a command button in Access which would run this batch file in command prompt automatically. Say if the batch file path is I:\AUTOGEN\LOOPGEN\AutoLoop.bat,
what VBA code can be used.

Thanks for any help.
 
Shell "I:\AUTOGEN\LOOPGEN\AutoLoop.bat"

Lookup the shell function in the help for more details.
 

Users who are viewing this thread

Back
Top Bottom