Solved

%LocalAppData%

Posted on 2013-10-28
4
3,236 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 34

Accepted Solution

by:
Seth Simmons earned 167 total points
Comment Utility
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 51

Assisted Solution

by:Joe Winograd, EE MVE
Joe Winograd, EE MVE earned 167 total points
Comment Utility
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 166 total points
Comment Utility
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
Comment Utility
Excellent!
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

So many times I have seen the words written in a question "if only I could show you" or " I know how hard it is for you since you can't see it" in any zone. That has inspired me to write about this tool in windows 7 called "Problem Steps Recorder…
One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now