Add button for run batch file

naobao

Registered User.
Local time
Yesterday, 16:35
Joined
Feb 13, 2014
Messages
99
Is it possible to run batch file in access form??

access version "2013"
 
Assuming you would want to do this with the click of a button, place the Command button on your form. In that button's OnClick event, use this code (borrowed from another forum:
Code:
Dim strBatchName as String

strBatchName = "C:\SomeFile.bat"
Shell strBatchName
 
Assuming you would want to do this with the click of a button, place the Command button on your form. In that button's OnClick event, use this code (borrowed from another forum:
Code:
Dim strBatchName as String

strBatchName = "C:\SomeFile.bat"
Shell strBatchName
Many Thanks!!
 

Users who are viewing this thread

Back
Top Bottom