Questions tagged [appdata]

Used for questions relating to the user application data folders. Topics should be related to the use of the Windows APPDATA or USERPROFILE environment variables.

Windows Environment Variables

Environment variables are mainly used within batch files, they can be created, modified and deleted for a session using the SET command. To make permanent changes, use SETX

Variables can be displayed using either SET or ECHO.

Variables have a percent sign on both sides: %ThisIsAVariable%

Standard (built-in) Environment Variables include the following:

ALLUSERSPROFILE   C:\ProgramData
APPDATA           C:\Users\{username}\AppData\Roaming
LOCALAPPDATA      C:\Users\{username}\AppData\Local
USERPROFILE       %SystemDrive%\Users\{username}
                  This is equivalent to the $HOME environment variable in Unix/Linux 

Related Tags:

298 questions
1
vote
1 answer

Saving session data to ApplicationData Folder (Windows 7/WindowsVista/WindowsXP)

I am trying to save session data to the users local ApplicationData folder, but it Windows just seems to create a new ApplicationData folder with the files inside it wherever it wants. Sometimes it ends up on my desktop, and sometimes it's…
jay_t55
  • 11,362
  • 28
  • 103
  • 174
1
vote
3 answers

Trying to create a good path in vb.net

I'm writing an application that creates some text files. I want them in some folders so I did: Dim fileLoc As String = "c:\users\%username%\downloads\users.txt" If 1 + 1 = 2 Then <--- not very professional but it works! it works.... Dim…
berm
  • 27
  • 9
1
vote
3 answers

How to copy res/raw folders files to data/data/package in android

I have 15-20 xsl files in res/raw folder.When 1st application is gets installed on device at that time I want to just copy that res/raw folder all xsl files to applications data/data/package/raw folder.How can I do this?
Nitish Patel
  • 1,026
  • 2
  • 19
  • 36
1
vote
0 answers

Can't connect to SQL Server database inside %appdata% folder

I use : connectionString="metadata=res://*/DomainModel.csdl|res://*/DomainModel.ssdl|res://*/DomainModel.msl; provider=System.Data.SqlClient; provider connection string=" data…
ch0eb1t
  • 103
  • 8
1
vote
1 answer

Post-build event: Is there a macro for App Data?

A typical post-build event should look like this: COPY "$(SolutionDir)Resources\abc.xyz" "$(TargetDir)" Various macros exist for solution dir, output dir etc. But how do I copy to system's special folders? Are there macros for it? I want copy to…
nawfal
  • 70,104
  • 56
  • 326
  • 368
1
vote
1 answer

Writing files in App_Data causes tempdata to be null

I have a small asp.net MVC 1 web app that can store files and create directories in the App_Data directory. When the write operation succeeds, I add a message to the tempdata and do a redirectToRoute. The problem is that the tempdata is null when…
RAMX
  • 11
  • 3
1
vote
1 answer

Setting download path to %appdata% and further

In a download (Java) script can you set the location to %appdata%, %home%, ect.? I've tried adding this the script in many different ways but all I come up with are errors. Do I need launch a .bat file before hand to set the directory, cd and…
user2422742
  • 45
  • 1
  • 1
  • 3
1
vote
1 answer

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:…
1
vote
1 answer

Google Drive's appdata size limitation

I am wondering if the new appdata folder supports sub-folders. Is it just a folder with alias 'appdata' and hidden from users? Also can files in appdata folder be shared with other users using the same application, like regular files in Google…
user2106007
  • 697
  • 1
  • 7
  • 11
1
vote
1 answer

Setting innerHTML of iframe html encodes text

I have an iframe that I'd like to use to display instapaper articles to the user in my WinJS "store" app. A very high-priority feature of this is that users should be able to read articles downloaded and saved while offline. Not getting into all of…
Josh E
  • 7,390
  • 2
  • 32
  • 44
1
vote
1 answer

Where to store local service appdata?

I'm writing a windows service that will have a 'LocalService' account type. I have a file that stores what it has to do. I also have a windows form GUI where that file is also accessed to add/remove instances of the action for the service to…
user1711383
  • 778
  • 2
  • 11
  • 20
1
vote
1 answer

How to get a given user's AppData directory in C#?

Possible Duplicate: How can I get the path of a Windows "special folder" for a specific user? Is it possible to get the application data directory for a given user who is NOT the user running the program in C#?
Jens K.
  • 11
  • 4
1
vote
4 answers

File already being accessed error

I have a few files in \AppData\Roaming that my app is writing to. I create the files when the application starts like this: private void Form1_Load(object sender, EventArgs e) { DirectoryInfo _File = new…
Nathan
  • 1,135
  • 2
  • 12
  • 27
1
vote
3 answers

APPDATA is not returned in Python executed via CGI

I'm using Python with the NLTK toolkit in Apache via CGI. The toolkit need to know the APPDATA directory, but when executed in the server, the os.environ not lists theAPPDATA. When I execute a simple print os.envrion in console, APPDATA is present,…
Renato Dinhani
  • 35,057
  • 55
  • 139
  • 199
1
vote
1 answer

how to access database kept in App_Data folder

I am getting problem while I try to access MS-SQL database that is kept in "App_Data" folder. My connection string in web.config file is-
ajay
  • 11
  • 2