Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy access Database file, mdb from program files to Isolated Storage in c#

I am building an IE Addon or Extension using C#. I have created an Access Database MDB file which will be in the Program files. Now at runtime I need to copy this MDB file to Isolated Storage so that I can use it further. As I can't access AppData if Protected Mode is ON in IE. I have seen few code samples which enables me to write files in Isolated Storage, but here I need to copy my database file MDB in Isolated Storage. Please come up with some code. Awaiting your response.

Thanks

like image 817
sumit_programmer Avatar asked Jan 06 '11 07:01

sumit_programmer


People also ask

How do I save an Access database in MDB format?

Under File Types, click Save Database As. Under Save Database As, do one of the following: To save a copy of the database in an . mdb format that can be opened by using Access 2002 or Access 2003, click Access 2002 - 2003 Database (*.

Where are MDB files stored?

mdb" the functions return "C:\mydb\". These functions all work whether the database is opened via a local drive, mapped drive or a UNC path.


1 Answers

Why not look at an alternative to doing this in access. There are reasons why certain things cannot be accessed in "protected mode".

like image 166
diagonalbatman Avatar answered Sep 23 '22 08:09

diagonalbatman