• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

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.
0
nummagumma2
Asked:
nummagumma2
  • 5
  • 3
  • 2
  • +2
1 Solution
 
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
 
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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
 
moduloCommented:
Closed, 50 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now