run ms dos batch file using a button in an access form

  • Thread starter ielmrani via AccessMonster.com
  • Start date
I

ielmrani via AccessMonster.com

Hi,
I want to run a ms dos batch file from a button in an access form. The file
is located in a folder (P:\AAReports). Is this possible?
 
G

Guest

Try something like

Shell "cmd /k ""C:\YourBatchPath\YourBatchFileName.bat""", vbNormalFocus

Daniel
 
I

ielmrani via AccessMonster.com

Great. thank you so much.
Daniel said:
Try something like

Shell "cmd /k ""C:\YourBatchPath\YourBatchFileName.bat""", vbNormalFocus

Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top