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
0
votes
1 answer

QFileDialog to default to AppData?

In my program, I have a button that opens a getOpenFileName dialog like this: path = QFileDialog::getOpenFileName(this, tr("Select region"), "%APPDATA%", tr("region file")); I want the dialog to default to the users AppData folder. All users are…
mrg95
  • 2,371
  • 11
  • 46
  • 89
0
votes
2 answers

Does app data hide files or create a virtual folder?

My application creates a bunch of temporary .class files and I had been storing these files in my local application directory but I recently started storing these in appData. Everything functions fine and I even have a part of my application that…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
0
votes
1 answer

Appdata folder as DLL reference

How can I use the AppData folder as a DLL reference for my application? I have no clue how to do that... I have 2 DLL files that my application downloads to my applications appdata folder.. And how can I actually reference them to my application..
Stian Tofte
  • 213
  • 6
  • 13
0
votes
1 answer

batch not copying file to new location in new cmd window

i need to create a file as if i was the browser for a qa test. I figure if i copy and rename cmd.exe i can execute commands and the process will be the browser and complete my criteria for the test. i need to do this via a batch script. Below is my…
toosweetnitemare
  • 2,226
  • 8
  • 33
  • 44
0
votes
0 answers

Would like to display current price for iOS app A within app B in user's currency. Possible?

In answer to an earlier question, it was pointed out that using this form of lookup -- http://itunes.apple.com/lookup?id=422876559 -- retrieves all of the info about the corresponding app from the app store. I would like to be able to display the…
0
votes
1 answer

Change AIR applicationStorageDirectory on Windows

Is it possible to put several AIR applications under the same folder in C:\%username%\AppData\Roaming? I know it uses id to create a folder for each app there to store data (applicationStorageDirectory), but that id doesn't allow spaces and I…
waterplea
  • 3,462
  • 5
  • 31
  • 47
0
votes
2 answers

How I can get a ArrayList out of a intern txt file in App_Data?

I want to get a ArrayList out of my intern txt file in App_Data Folder. I have in my ASP.NET Application a App_Data Folder wit a file how this content: P1 AS5050 GMS4010 GMS4020 GMS4030 GMS4030A gateway view_only AS5050 and I want to get this list…
Tarasov
  • 3,625
  • 19
  • 68
  • 128
0
votes
2 answers

System location where any User/Administrator can have read/write access permission

I have a wpf application. It uses SQL CE database. I am creating sdf file in user specific AppData folder. But for individual application this will create individual sdf file's. I don't want this thing. I just want a common database location in…
user2648099
0
votes
2 answers

SQLite database file location and environment

I have developed a little software for Windows few weeks now and got problems when trying to make proper installer for it. I got spesific request that database file has to be in same folder where program is so user can take own backups every now and…
Jester
  • 13
  • 1
  • 6
0
votes
1 answer

Google Drive API Application Data folder, is it realy that difficult?

I want to store some application data on the google drive, for example to remember settings the user have made. Normally I will use cookies for this or the localStorage of the browser but this is browser depended and limited (storage size). I google…
Codebeat
  • 6,501
  • 6
  • 57
  • 99
0
votes
1 answer

Can 'Not putting my DB under the 'App_Data' affect the way Linq2Sql works?

I'm experiencing a problem while working with all my projects. I don't get Intellisense with Linq2Sql and, when I write partial classes in the model folder, properties created by the Linq2Sql designer are not recognized by the partial classes. So,…
Richard77
  • 20,343
  • 46
  • 150
  • 252
0
votes
1 answer

How to delete AppData\Local\Geckofx\ when closing my browser?

I'm working on a Gecko based web browser and I'd like it to delete AppData\Local\Geckofx\ on exit. I'm currently using this code: protected override void OnFormClosing(FormClosingEventArgs e) { try { var dir = new…
CCCP
  • 215
  • 3
  • 14
0
votes
1 answer

How do I copy a DB from the server to the application's AppData folder?

I've been working on an ASP.NET application accessing a DB in my local machine. Now I want to have this DB in the app's AppData folder instead, so I can easily work on it from within VS SQL instance accessing the mdf file, and easily copy and share…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
0
votes
1 answer

Appdata in Non-Windows

To access the Appdata folder in Windows, I can just use %APPDATA% in the path name and that's it. Does this method work on Linux and other OS as well? I know there alternatives to using %APPDATA%, but my question is just if I can use it there, and…
AyCe
  • 727
  • 2
  • 11
  • 30
0
votes
1 answer

Extract .zip to %appdata%\subfolder

I want to extract a zip to %appdata%\subfolder. When I put a route such as C:\Users\User\AppData\Roaming\subfolder, it extracts ok; I want to do this for each %appdata% of the client systems. I’m using SharpZipLib to extract.
TheMrRafus
  • 35
  • 1
  • 1
  • 6