Solved

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

Posted on 2004-03-31
14
386 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
  • 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

Suggested Solutions

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…
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

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