Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coding Button To Run Batch File

Status
Not open for further replies.

specious

MIS
Jul 23, 2001
14
US
Is it possible to run a batch file from within Access? If so, any tips on how to do this. Thanks in advance.
 
Note really sure of the exact details behind it by try the following Shell function in code...

Call Shell("c:\FileName.bat", vbNormalFocus)

This will execute the .bat file from within your access code sub or function.
 
Thanks for the tips. I will try it and let you know what happens.
 
There is actually quite a lot you can learn from the Help files too.

From your code editor, highlight the word 'Shell' and press F1. This will bring up the help feature with more info that you can read up on for more options.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top