Solved

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

Posted on 2004-03-31
14
387 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Active Directory Replication 10 1,147
Windows 16 355
Old Schema existing from Windows 2000 DC that is no longer available 14 137
Repair old Windows 2000 boot 15 243
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…
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

735 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