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

How to clear user's app data folders with Inno Setup?

When I uninstall my app with my Inno Setup uninstaller, the runtime files created in the user's AppData folder remain. Is it possible to remove them?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
2
votes
1 answer

WiX remove LocalAppData (AppData\Local\my_app_folder) on uninstall

I have a wix setup project which creates a ProgramMenu shortcut and a Desktop shortcut. I am able to remove these shortcuts by using RemoveFolder.
Suhaib Ahmad
  • 487
  • 6
  • 25
2
votes
1 answer

How do I access the RoamingState folder of an UWP when it calls my DLL?

I can't get C++ to work with the "ms-appdata:///roaming/" call to retrieve files I am currently using cpp to write a Chinese Input Method Editor, and it is packaged as a dll. Therefore, when I make a call to ifstream to read my Settings File, file…
HelloDog
  • 47
  • 1
  • 6
2
votes
1 answer

AppData folder of user who runs application

I'm currently using this: Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) to access the AppData folder of the user logged in. The result is a path like this: "C:\\Documents and Settings\\Michael\\Application Data" But: To run…
Michael1248
  • 150
  • 1
  • 12
2
votes
1 answer

Ionic Android app stops storing after cache reaches 10.3MB

I built an Ionic app for a client that enables him to take pictures and store them with LocalStorageService. He reports that once the app's cache reaches 10.3 MB, pictures that he take are no longer stored. Once deleting the application's cache, he…
2
votes
1 answer

Defining MATLAB GUI default values before object creation

I like to define variables (such as Appdata) before GUI objects are created. I couldn't immediatly find the following questions online: General question 1) What determines the order of execution of different object creation functions _CreateFcn or…
2
votes
1 answer

Issue in loading HTML/JS files from appdata folder of windows 8.1 Cordova app

I am developing Cordova App for windows 8.1. I have developed functionality which downloads zip from web and extracts it to "AppData (appdata:///local/)" folder of the application. That zip file has HTML and JS files. Now I want to display that…
Shamse Alam
  • 1,285
  • 10
  • 21
2
votes
3 answers

Del command in command prompt

I want to, for example, delete a file in AppData/Roaming/MyFolder/myfile.txt. I use command prompt and typed this: del %userprofile%/AppData/Roaming/MyFolder/myfile.txt But then the command prompt said: Parameter format not correct - "ppData" Then I…
newbieguy
  • 658
  • 2
  • 11
  • 29
2
votes
0 answers

MobaXterm how to change path of installation, from appdata to another location

is it possible to change the path of where MobaXterm installs its binaries? I want it to be somewhere else instead of %appdata% because the school machine I'm connecting from disallows you to run or access things from %appdata%.
mepmerp
  • 701
  • 1
  • 9
  • 16
2
votes
2 answers

How to copy files to all the user profiles under C:\Users\Username\AppData\Local (Using batch file)

I want to copy iTunesPrefs.xml file for all the users, who have ever logged on to the PC, under the above mentioned location (for iTunes installation). If I run the batch file as a current user, I can only write to my AppData Folder. Also, if I do…
user3839914
  • 83
  • 1
  • 2
  • 9
2
votes
2 answers

How do I create directories and files within the user's AppData directory?

So, I'm creating a game and need to create directories to store all the user's data and saves and whatnot. As you can see, I need to create a folder in the Application Data folder of the user called, "[WarDungeon]", and there, I will store other…
2
votes
1 answer

Open a .exe file in %appdata% in console of C#

I Wrote this code to Open an .exe file in %appdata% in console: try { System.Diagnostics.Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData )); } catch { } It opens appdata Directory but I want it to open an .exe…
user2442074
2
votes
3 answers

Changing AppData path (System Property)

I'm working on a launcher for the Minecraft game, what I would like to do is set the APPDATA (windows) location for the game. The value is not really changed, but it's modified for the program that executed the code. For example, it's very easy to…
Tim Visée
  • 2,988
  • 4
  • 45
  • 55
2
votes
1 answer

Find all users, use them as variable to pull appdata directory list from cmd?

I'm trying to build out a script that will pull the list of users, grab each of their names and then do a directory list for each of their appdata folders. So far I'm thinking that I could just use the net user > C:\userlist.txt to create the list…
2
votes
1 answer

Crash for the deletion of a database in AppData: Access denied

I have this code for creating a path for a database: static string folder = Application.UserAppDataPath; static string fisier = "prog.db"; string file = folder + "\\" + fisier; And this code for delete the database: if…
AnDr3yy
  • 239
  • 2
  • 5
  • 16