user2230606
user2230606

Reputation: 99

Saving files to App Data folder

I have written a Visual Basic.Net application in Visual Studio 2012 Ultimate. When this application is installed to the Program Files folder, when files are saved, they are located in this location:

C:\Users\[Username]\AppData\Local\VirtualStore\Program Files\[Company Name]\\[Application Name]

How can I specify to save the files in the following directory:

C:\Users\[Username]\AppData\[Company Name]\\[Application Name] 

folder (basically, not the VirtualStore folder)?

Do I need to register this application within Windows to do this?

Thanks in advance

Upvotes: 1

Views: 4995

Answers (1)

Sam
Sam

Reputation: 7398

First, what instalation software are you using?

Second, if you're going to save your app files in the AppData directory, then you should really choose to save your app in either the, Roaming, Local, or LowLocal directory. It isn't "proper" to start making new directories where other directories are available to use, especially since the Roaming, Local, and LowLocal directories were more-or-less made to hold application's data (which is why the parent directory is call "AppData").

Upvotes: 1

Related Questions