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
3 answers

how to clear cache using javascript when starting Offline application

I need a help to clear cache using Javascript, Is it possible to clear cache using Javascript?. I have developed a Offline Chrome application using Javascript & Node WebKit. When using this application, the cache sizes increasing more day by day.…
KumarA
  • 1,368
  • 3
  • 18
  • 41
0
votes
1 answer

Targetting Windows 7 desktop: identifier "SHGetKnownFolderPath" is undefined

I am writing a C++ desktop app for Windows 7 and later. I want to get the path to the AppData/Roaming folder so I use SHGetKnownFolderPath: #include "stdafx.h" #include #include void hello() { LPWSTR roamingPath; …
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
0
votes
1 answer

access denied error when writing into a file in appData folder using c#

I have a desktop app in C# that stores it's data in an XML file. When application is installed in "Program Files" folder, its XML file goes to a folder in AppData(CommonApplicationData) folder. When reading from this files there is no problem but…
ako
  • 2,000
  • 2
  • 28
  • 34
0
votes
1 answer

How to get %APPDATA% path in C (windows 7)

I need to get the path of %APPDATA% in my c program, to save a file in %APPDATA%\myprogram\ How can I do that ?
Red Star
  • 265
  • 2
  • 15
0
votes
0 answers

Is there a version of CSIDL_LOCAL_APPDATA that can be seen by more than one user on windows 8.1

I need to have a technician install some files into a folder on some desktops (not the documents folder or Program files) that can later be overwritten by a program running on the PC using an envionment variable to point to the correct folder. The…
user3209752
  • 619
  • 2
  • 17
  • 29
0
votes
1 answer

Can I use my D drive to install a software which has a recommended path C:\ user \ AppData \ Roaming

I have 2 drives C and D. C is 128 GB SSD and D is 1 TB HDD. Win 10 is installed on my C drive. As far as I know, I can use my D drive to install programs like Adobe, Office, Games... However, some programs want to be installed my AppData folder. In…
ErenL
  • 77
  • 1
  • 9
0
votes
2 answers

Storing c# application license info and other credentials in App data folder

I wanted to implement a trial version of my .NET application and I came across solutions that involved saving the dates in the app data folder. The questions I have are related to that solution and I would have commented over there but I dont have…
Furqan Tariq
  • 73
  • 1
  • 12
0
votes
1 answer

How to save and load an XML file in AppData?

I've been teaching myself how to code lately because I am bored. I am trying to load an XML file on startup and put the contents of that file into a listbox, then save the contents of the listbox to the file on close. That's exactly what I have now.…
0
votes
1 answer

WiX preserve old data files stored in ProgramFiles

I have adapted a program to stop needing administrator rights or writing data files into its installation programfiles directory. These files are not created by the program but modified: they exist in a fresh installation, even if they were empty…
J.P.
  • 350
  • 2
  • 11
0
votes
0 answers

SHGetFolderPath returns incorrect file path for non-English Windows

My application uses SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath) to get the file path for application data. A user reported (via a Survey Monkey survey) a bug as reported below -- "Win XP uses partly a Czech name "C:\Documents and…
Bob H
  • 135
  • 8
0
votes
1 answer

How to delete a directory in windows %appdata%(or %programdata%) using NSIS

I am building a setup using NSIS. In my setup, i need to delete a folder (and its contents) in the windows %appdata% (or %programdata% in win7) on uninstallation of my application. As i am relatively new to NSIS, Kindly Requesting you for a…
Bomzinho
  • 161
  • 1
  • 7
  • 14
0
votes
1 answer

PowerShell script to remove file from hidden folders

I am currently trying to run a script I wrote. It works great, but I need it to also search and remove from the hidden folders as well. It does not seem to have any effect on hidden folders... Here is my script. Get-ChildItem C:\ -Include…
Tyler S
  • 827
  • 1
  • 14
  • 23
0
votes
0 answers

How do I fix the "Specified path is too long" error?

I know this is a site for questions mostly about programming, and since I'm trying to fix this error for a programming reason I feel this is a fit place to ask this, I'm trying to install the ProDG Visual Studio 2010 Integration, and everytime I try…
Demeton
  • 1
  • 1
0
votes
1 answer

python seqdiag file is big and can't be openned in other computer?

I have used seqdiag to generate sequence diagram, and it generates 3MB png file. It sounds great, right? But something wrong when I open it. When I open the file, appdata/local/temp has gained 3GB, and generates big files named ~PI*.tmp. After I…
Leo Hsieh
  • 351
  • 4
  • 12
0
votes
3 answers

Android SDK gives wrong path, Android Studio

Recently I've started to get involved in Android developing, and I learned that Android Studio was available contrary to Eclipse. So I downloaded the new software by Google and started it up. It prompted me to install some SDK packages and I did all…
EssemG
  • 3
  • 3