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

The best place to store app's data

My application has some data (config files, worked files etc), which should be placed on hard disk. Therefore I have some questions about it: where is the best place to store it? Special folder inside User's Documents like "...User's…
Oleg Sh
  • 8,496
  • 17
  • 89
  • 159
3
votes
0 answers

Unable to upload data using fruitstrap (iOS device). Segmentation fault: 11

I am trying to upload data to my app using fruitstrap this way. ./fruitstrap upload --bundle-id com.x.x --file /path/to/data-file.xcappdata/ but I get a "Segmentation fault: 11" error. Does anyone know why? and how it can be fixed? and when I say.…
3
votes
2 answers

How to download PDF from website and store in %appdata% with Visual Basic .NET

I have a PDF file hosted on a website. I would like my VB.NET program to retrieve the file/download it and store it somewhere in %appdata%. This could be in a folder of it's own like %appdata%/my_program if you want. How do I achieve this in my…
James S
  • 51
  • 1
  • 6
3
votes
2 answers

How to run a jar file from another jar

I have a jar file that has been turned into a .exe using L4J, and another jar file in appdata. The reason for having two files is that I need an updating mechanism. My question: How do I run the .exe file on the desktop, then load the jar in…
Mad3ngineer
  • 113
  • 2
  • 11
2
votes
0 answers

Best method of communication between your app and your website? PHP, Web service, etc

I am creating an app which I would like to have communicate with my website. The app will have to get data for a particular app user from the website's database. I am unclear as to the best way to do this. I have seen one way of doing this for…
edc598
  • 317
  • 3
  • 11
2
votes
1 answer

WinUI 3 packaged application not creating folder in AppData

In a WinUI 3 packaged application, I am trying to create a folder in AppData\Local\MyApp. In my application startup I am doing the following: public App() { string apf = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); …
Zen
  • 115
  • 7
2
votes
2 answers

Visual Basic how to get to %appdata%

I'm working on a project in Visual Basic and it's going to store all the data in a folder in %appdata%. I'm using Visual Studio 2010 I already tried…
Matthewj
  • 1,932
  • 6
  • 26
  • 37
2
votes
0 answers

Get %appdata% of remote computer

Possible Duplicate: How to expand environment variables remotely with .NET? I need to get the %appdata% of a remote computer in C#. I know i can do it locally with Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), but how can…
Ben2307
  • 1,003
  • 3
  • 17
  • 31
2
votes
2 answers

Is there another way to access Hololens LocalAppData other than the Windows Device Portal?

I keep running into this issue where when I try to save local app files from a Hololens to my computer via the Windows Device Portal, the Portal takes forever to download them and eventually times out. This is frustrating since I have no problem…
2
votes
2 answers

C++ getting the path of APPDATA

I'm just new at coding and stuck on using AppData path in c++ cmd code. How can I correctly use AppData in the code below? #include #include #include int main(int argc, char** argv){ char* appdata =…
Onur Kaya
  • 29
  • 8
2
votes
3 answers

Create folder in APPDATA on Windows Vista/7

I have made an application in WPF and it has user profiles, not related to Windows user profiles. It's quite a simple thing, but I need to store those profile files somewhere. As I read, the preffered folders are Appdata, common application data…
2
votes
1 answer

C# Application (All-Users Installtion) should use %appdata% per User (even runAs Admin and/or in RDP Session)

I have a C# application that is being installed for all users. Every user on the pc can use the program, and I need to store user-specific Data per user. I started with Enviroment.SpecialFolder.ApplicationData giving me…
KYL3R
  • 3,877
  • 1
  • 12
  • 26
2
votes
0 answers

How to complete delete an iOS app data from keychain manully

I'm an test associate. Developers in my organisation have made a mistake in the code. After deleting the app, it leaves behind certain keychain data, which stops me from installing any other version of the app and testing it. Let's take the error…
vishal
  • 79
  • 1
  • 12
2
votes
4 answers

How to get to users %APPDATA% when running as system user from a batch file

Deploying applications via SCCM. Currently trying to deploy Wireshark and I am 1st trying to create the directory then copy over a preference file to the users %APPDATA%. The preference file basically stops the application from checking for auto…
Chris Higg
  • 23
  • 1
  • 1
  • 3
2
votes
1 answer

Get logged in username in NSIS installer when running as another user [admin]

I created an NSIS installer that requires elevation and also installs some files in the users AppData directory. This works fine as long as the current user is an administrator. If the user is a limited user then they must run the installer as an…
Joe Uhren
  • 1,342
  • 1
  • 13
  • 27