?
Solved

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

Posted on 2004-03-31
14
Medium Priority
?
390 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

764 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