Answered by:
trusted location()

Question
-
problem:an application made in ms access 2003 when opened in ms access 2007 or 2010 gives us a security warning.now when i add my folder to the trusted location of ms access then that warning dissappears.i want a C# code to automate this process.Means i want a C# code to add my particular folder to the trusted location in ms access or in system registry.even a C# code which can disable that warning will also work for me.
Early response is appreciated.
regards
estore.
Friday, June 1, 2012 10:34 AM
Answers
-
Here is a vbscript that does this type of thing. You can easily inspire yourself to build a C# version.
http://www.devhut.net/2010/06/23/vbscript-createset-trusted-location-using-vbscript/
Daniel Pineault, 2010 Microsoft MVP
http://www.cardaconsultants.com
MS Access Tips and Code Samples: http://www.devhut.net- Proposed as answer by KCDW Friday, June 1, 2012 4:20 PM
- Marked as answer by Dummy yoyo Monday, June 18, 2012 8:04 AM
Friday, June 1, 2012 10:46 AM
All replies
-
Here is a vbscript that does this type of thing. You can easily inspire yourself to build a C# version.
http://www.devhut.net/2010/06/23/vbscript-createset-trusted-location-using-vbscript/
Daniel Pineault, 2010 Microsoft MVP
http://www.cardaconsultants.com
MS Access Tips and Code Samples: http://www.devhut.net- Proposed as answer by KCDW Friday, June 1, 2012 4:20 PM
- Marked as answer by Dummy yoyo Monday, June 18, 2012 8:04 AM
Friday, June 1, 2012 10:46 AM -
Nice Daniel!
Chris Ward
Friday, June 1, 2012 4:20 PM -
To ease the process of converting the code, you can try this:
http://www.developerfusion.com/tools/convert/vb-to-csharp/
Ryan Shuell
- Edited by ryguy72 Wednesday, June 6, 2012 8:39 PM
Wednesday, June 6, 2012 8:39 PM