Solved

Redirected Folders - My Documents... What is the Environment Variable...?

Posted on 2004-03-31
14
389 Views
Last Modified: 2012-05-04
I want to be able to write batch files that will reach the correct location, but can't find the environment variable setting for this.... Someone surely knows.
0
Comment
Question by:nummagumma2
[X]
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
  • 5
  • 3
  • 2
  • +2
14 Comments
 
LVL 11

Expert Comment

by:kabaam
ID: 10727720
Hi nummagumma2,

To open the current location
%userprofile%/my documents


happy trails
Chad
0
 
LVL 1

Author Comment

by:nummagumma2
ID: 10728286
%userprofile% = the profile location of the user.  If that's not redirected, or roaming, it will point to c:\documents and settings\username.

This is not the same location as "My Documents" when My Dox is redirected to a network location.
0
 
LVL 15

Expert Comment

by:sr75
ID: 10728331
How are their "My Documents" redirected?

If it is to a folder with their username then use this:

\\servername\%username%\my documents

Or something to that effect
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 1

Author Comment

by:nummagumma2
ID: 10728351
I am looking for the variable that the system uses, not a workaround. =)

I want to deploy this to a bunch of clients with just one script, and my redirection points at a variety of servers.
0
 
LVL 11

Expert Comment

by:kabaam
ID: 10728396
here is a full list of the variables...
http://kennethhunt.com/archives/000933.html
I can't find anything that will get you any closer... have you looked into VBS?
0
 
LVL 1

Author Comment

by:nummagumma2
ID: 10728445
I found that on google when I looked too.  Starting to sound like I'm chasing a pink elephant.
0
 
LVL 11

Expert Comment

by:kabaam
ID: 10728497
unfortunately... I hope you get that elephant before it tramples my tulips ;-)
Like I said earlier though... I thought I saw something somewhere that showed a direct path to my docs.
Of course, I can not find it now.
I don't know much about vb
sorry
0
 
LVL 15

Expert Comment

by:sr75
ID: 10728536
Have you tried this?

"%HOMEDRIVE%""%HOMEPATH%"\My Documents

0
 
LVL 1

Expert Comment

by:mclean01
ID: 10729536
If you're using Active Directory, I would suggest the following in lieu of the batch file:

Registry Settings for Folder Redirection in Windows

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q242/5/57.asp&NoWebContent=1

0
 
LVL 1

Author Comment

by:nummagumma2
ID: 10732905
That's how folder redirection is happening.

Now that the folders are redirected, I want to be able to programatically apply something to the location.
0
 
LVL 1

Author Comment

by:nummagumma2
ID: 10932149
I've learned that this is not possible from reading the very very fine print in an intellimirror document on Technet.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10966892
Closed, 50 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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