Solved

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

Posted on 2004-03-31
14
383 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
 
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now