Hi,

My project is in c#, created in vs2008 with access 2007 as the db and windows 8.1 as the os.
I've created a setup file with the required dll and accdb file added to it. When the application runs for the first time it creates another copy of the accdb file in "C:\Users\ABC\AppData\Local\VirtualStore\Program Files (x86)\Default Company Name\Setup" folder. Thereafter this is the file that the application uses.
Any reports that are created also reside on the same folder. How can I programmatically access this folder?

Using methods in System.IO.
Add using System.IO;

System.IO Namespace

Everything points to c:\Program Files(x86)\Default Company Name

The very thing you need is System.IO namespace to accomplish the task.

No one has any idea what you are talking about when you say "Everything points to c:\Program Files(x86)\Default Company Name". Provide some code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.