?
Solved

%LocalAppData%

Posted on 2013-10-28
4
Medium Priority
?
6,501 Views
Last Modified: 2013-10-29
if I understand %LocalAppData% means the Appdata/Local folder

but under Appdata, there are : Local,LocalLow and Roaming.
so what is the variable for LocalLow and Roaming ?

Thank you
0
Comment
Question by:jskfan
4 Comments
 
LVL 36

Accepted Solution

by:
Seth Simmons earned 668 total points
ID: 39607385
if you do set from the command prompt it will show all the defined variables

LocalLow doesn't have a default one but Roaming is APPDATA

C:\Users\Administrator>set | find /i "roaming"
APPDATA=C:\Users\Administrator\AppData\Roaming
0
 
LVL 57

Assisted Solution

by:Joe Winograd, EE MVE 2015&2016
Joe Winograd, EE MVE 2015&2016 earned 668 total points
ID: 39607402
Yes, %LOCALAPPDATA% refers to <%USERPROFILE%\AppData\Local>. "Roaming" is actually %APPDATA% itself and refers to <%USERPROFILE%\AppData\Roaming>. There is no environment variable that I'm aware of for LocalLow, so you'd have to refer to it as <%USERPROFILE%\AppData\LocalLow>, which could be problematic, as discussed in this very interesting thread on LocalLow:

stackoverflow.com/questions/4494290/detect-the-location-of-appdata-locallow

Regards, Joe
0
 
LVL 44

Assisted Solution

by:Darr247
Darr247 earned 664 total points
ID: 39607782
You can also 'maneuver' there...  e.g.
%localappdata%\..\LocalLow
%localappdata%\..\Roaming
will get you to those locations.

You might not have ever noticed, but when you do a dir command those dots are the first things listed if you're not in the root directory. The single dot is the current subdirectory, and the double dot is the parent directly above the current subdirectory. So the 'relative paths' trick above means, take me to %localappdata% then to its parent folder then to the named folder.
Try it...
CD %localappdata%\..\LocalLow
from any folder should take you to
C:\Users\[username]\AppData\LocalLow
(assuming C: is where the Users folder is located).
Or paste %localappdata%\..\LocalLow into Explorer's address bar and hit Enter.

The . and .. locations come in handy navigating blindly in batch files, too.
e.g.
CD ..
moves up 1 level, no matter where the current folder.
0
 

Author Closing Comment

by:jskfan
ID: 39610106
Excellent!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question