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

App only runs in background until you delete AppData then it works correctly

I have a weird occurrence where the program sometimes only starts in the background and even if you kill it with task manager it still only starts in the background. When you navigate to AppData/Local/blahblah there is a user.config file. If you…
Johandre
  • 55
  • 2
  • 10
0
votes
1 answer

Problem writing to users AppData directory

My application writes to the registry in HKEY_LOCAL_MACHINE, so I use a manifest file to utilize the UAC functionality. Though when I write data to the users AppData folder (after the UAC dialog prompt appears) the data writes to the administrator's…
tempbottle
  • 83
  • 1
  • 5
0
votes
1 answer

Why does my dll end up in AppData\Local\Temp\

I have a small SWT based java application. On installation swt-win32-*.dll is installed with my application in C:\Program Files\myapp\win32. When I looked at my application in process explorer I noticed that the dll is loaded…
bbuser
  • 918
  • 11
  • 33
0
votes
1 answer

Rename a file in Roaming folder for each user in a computer using powershell

I am trying to rename a file in \appdata\Roaming\ for each user profile on a pc. The command I am trying this, but not working. What am I doing wrong? Please help. $old = 'C:\users\*\AppData\Roaming\SAP\Common\test.txt' $rename =…
RIC
  • 15
  • 4
0
votes
3 answers

How can I create a folder in the app folder in the user's AppData folder e.g. C:\User\AppData?

I've tried this: var systemPath = System.Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData); var complete = Path.Combine(systemPath, extractfilename); But it results in: C:\ProgramData\Extract.txt My expected output…
0
votes
1 answer

ImportError: Could not find the DLL(s) 'msvcp140.dll or msvcp140_1.dll'. Even when the files are located in the %PATH% directory

I receive the following error when importing tensorflow (base) PS C:\Users\Rostyslav\GIt\GNN-GCP> python run_model.py --train --save Traceback (most recent call last): File "run_model.py", line 6, in import tensorflow as tf File…
Python
  • 359
  • 2
  • 16
0
votes
0 answers

$PSScriptRoot returns AppData path instead of the running script's path

So I'm trying something out and doing comparisons. Everything else works fine but when I use Ps1 to Exe by F2KO to get the running script's path, it returns something like this C:\Users\justMe\AppData\Local\Temp\447F.tmp\4480.tmp\Test.ps1 I already…
0
votes
1 answer

How can I pass multiple values of the same type with App::data() in actix-web?

The official example code: /// use std::cell::Cell; /// use actix_web::{web, App, HttpResponse, Responder}; /// /// struct MyData { /// counter: Cell, /// } /// /// async fn index(data: web::Data) -> impl Responder { /// …
Anunaki
  • 763
  • 2
  • 8
  • 18
0
votes
2 answers

C++ CreateDirectory() not working with APPDATA

I want to create a directory inside the %APPDATA% folder. I am using CreateDirectory() for this and it doesn't work. I debugged the code and it seems like the path is correct, but I can't see a new directory in my the APPDATA. My code for creating…
Sherlock Holmes
  • 191
  • 1
  • 8
0
votes
1 answer

How to save file in appdata

What's the path, I have to use to read and write a File which is in the appdata? Can I use ImageIo or do I have to use something else. And can I use BufferedReader and BufferedWriter?
carlos.gmz
  • 100
  • 8
0
votes
1 answer

How to install java 1.1 on 64-bit Windows with no folder called AppData?

Recently i have been working with a project that requires Java 1.1 version. But whenever i try to run the jdk-1_1_8_006-win.exe file , I have been receiving a message as shown below. Image showing error: After clicking ok on that: I have seen…
Indra Neel
  • 125
  • 2
  • 7
0
votes
2 answers

Is it possible to save uploaded files in ~/Content? (ASP.NET MVC2)

I've been trying to save incoming uploaded images in ~/Content on my development machine while debugging/testing, but no files are being transferred there. Does the folder allow for images to be saved/transferred to it, or will I need to save them…
Major Productions
  • 5,914
  • 13
  • 70
  • 149
0
votes
0 answers

Place ini config file in %appdata% for all users

I'm trying to install the Greenshot.ini in %appdata% of every user that have been created or will be created. So that the user do not have specify which language to use on first login for all users. Currently manually copying the ini to existing…
Jozef
  • 1
  • 1
0
votes
1 answer

Windows Service Logging

I´ve a Windows Service and I want to log some information with NLog. My NLog file looks like:
Felix Arnold
  • 839
  • 7
  • 35
0
votes
1 answer

TFS to Server IIS Deployment -Include empty folders in App Data

ON deploying from TFS 2015 to onpremise Server,it deletes empty folders in App Data Folder.I want to include the empty folders in AppData and set Read,write/full control permissions to that folder.I use WINRM IIS Web Deployment task.
Ashu
  • 11
  • 5