Suppress Office warning when running batch file from within access 2010

adam.grendell

Registered User.
Local time
Today, 03:14
Joined
Dec 7, 2011
Messages
21
Hi all

I have a batch file that runs when I click on a command button on a form. It makes a backup of all my files and resources for the database. When I click the button, Access gives me a warning saying:

Opening G:\PayrollDataCenter\Data\Resources\PDCbak.bat
Some files can contain viruses or otherwise be harmful to your computer.
It is important to be certain that this file is from a trustworthy source.

Would you like to open this file?

Yes/No

Is there a way to keep this window from popping up?

I've tried "DoCmd.SetWarnings False" but it didn't work?

Any Ideas??

Thanks,

Adam
 
You need to change the batch file process to a VBA procedure inside the project or write it as a signed VB Script which can run like the batch file.
 

Users who are viewing this thread

Back
Top Bottom