Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

%LocalAppData%

Posted on 2013-10-28
4
4,003 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
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 53

Assisted Solution

by:Joe Winograd, EE MVE
Joe Winograd, EE MVE earned 167 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 166 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

A procedure for exporting installed hotfix details of remote computers using powershell
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

809 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