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

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.
LVL 1
nummagumma2Asked:
Who is Participating?
 
moduloConnect With a Mentor Commented:
Closed, 50 points refunded.

modulo
Community Support Moderator
Experts Exchange
0
 
chadCommented:
Hi nummagumma2,

To open the current location
%userprofile%/my documents


happy trails
Chad
0
 
nummagumma2Author Commented:
%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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
sr75Commented:
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
 
nummagumma2Author Commented:
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
 
chadCommented:
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
 
nummagumma2Author Commented:
I found that on google when I looked too.  Starting to sound like I'm chasing a pink elephant.
0
 
chadCommented:
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
 
sr75Commented:
Have you tried this?

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

0
 
mclean01Commented:
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
 
nummagumma2Author Commented:
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
 
nummagumma2Author Commented:
I've learned that this is not possible from reading the very very fine print in an intellimirror document on Technet.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.