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

Get Absolute Path to App_Data From Job

I have a class, EmailSendJob, that implements IJob and I need to get the path to the App_Data folder in my web project from the Execute(IJobExecutionContext context) method of the EmailSendJob class. Can anyone tell me how to do this?
COBOL
  • 1,031
  • 8
  • 16
  • 32
0
votes
0 answers

Winform User Settings Location Changes Based On Program Location

I have a winform application (C#) which uses a settings file to store roaming user data. I've written all the settings save functionality to happen at form close. It all works OK but I've noticed that when the application closes it creates a users…
RickBowden
  • 189
  • 2
  • 15
0
votes
2 answers

Directory Configuration in C#

I would like to read from a htm file, that is located to the following directory: C:\Users\**NAME**\AppData\Roaming\Microsoft\Signatures How can I change the path, so that I can use it from another computer, where the user name is not equal to the…
sjantke
  • 605
  • 4
  • 9
  • 35
0
votes
1 answer

Is there a quick way to locate the SQLite database that my app creates?

I used this blog post as a basis for creating my SQLite tables. Using the SQL Server Compact/SQLite Toolbox, I can view the created tables nicely. However, in order to first create the connection in that tool, I had to locate the SQLite database I…
0
votes
0 answers

VB.NET creating a directory then downloading and running a file in Appdata

For my application I am trying to create a directory for my program, download an executable into the folder and then run it but I am getting two errors, Error 1 Too many arguments to 'Public Shared Function Exists(path As String) As…
0
votes
0 answers

Wait until i have a specific value in appdata in MATLAB gui

I'm working on a GUI. I want something likes waitfor for appdata. For example I use setappdata(0,'Value',2) in another window and i want my main gui wait and stop to continue the code until this appdata exists and the value is equal to 2. How can i…
Eghbal
  • 3,892
  • 13
  • 51
  • 112
0
votes
1 answer

WiX and InstallCommand

I'm using WIX Link, and I'm instaling *exe file, lets say program.exe by:
Carlos28
  • 2,381
  • 3
  • 21
  • 36
0
votes
2 answers

How to create a new folder in %APPDATA% using C++?

I've tried to include the IOUtils library and use the CSIDL command, but it isn't working... Here is the part of the code that does it: //------------------- Includes ----------------------- #include #include #pragma…
mauroaraujo
  • 332
  • 1
  • 10
  • 23
0
votes
1 answer

Azure MS Access database - best location?

My company is considering migrating our systems to Azure. We have an asp .net web application running with Access Database. My boss doesn't want to use SQL azure just yet - he may want it one day but for now we will stick with ms Access. Where would…
0
votes
1 answer

How to find the path to appdata folder for the logged in user in windows service

I wrote a service and in the code I tried to get the AppData folder's path: C:\Users\[Username]\AppData\ I tried: Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) But I got: C:\Windows\system32\config\systemprofile\AppData
bunny
  • 1,797
  • 8
  • 29
  • 58
0
votes
1 answer

Create application folder to be used by several users

I am creating a program that consists of a (1) Windows Service and a view (2) WPF Application. (the view and service do not have to be run at the same time) I will like to save all the settings on the same location. I was thinking to save all the…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
0
votes
1 answer

How can I code my web page to download a file from a site visitor's computer?

I am creating a html5 and javascript web page that allows you to draw your own picture. The page itself works, but I want to make it so my web application will create a folder in their Appdata (or Application Data if they're on a mac) directory.…
0
votes
1 answer

Issue with batch file parameters

I'm trying to design a piece of software and need a batch file to help. Unfortunately its not working. It needs to copy an Appdata file to an F drive. The error message is "Invalid Parameters". The code is below. @echo off ::checking password set /p…
Tristan
  • 27
  • 6
0
votes
1 answer

C++ Downloading a file to appdata

I'm trying to download a file to char* appdata = getenv("APPDATA"); lpURLDownloadToFile URLDownloadToFile; HMODULE hUrlmon = LoadLibrary("URLMON.DLL"); URLDownloadToFile = (lpURLDownloadToFile)GetProcAddress(hUrlmon,…
adalwin
  • 1
  • 1
0
votes
1 answer

How can I run the vbscript as the 'Administrator' but access on APPDATA folder of current logon user VBSCRIPT

I tried to access on the APPDATA folder, which does function with the following code perfectly (run as the current logon user): Set objShellApp = CreateObject("Shell.Application") Const ssfAPPDATA = &H1A sAppDataPath =…
Bk_
  • 99
  • 9