How to reserve a letter


This is a workgroup environment, all computers with WinXP Pro SP1.
Now, the configuration is : 2 primary partitions, one for recovery, containing images, and the other, the active and bootable one.
so you C:\ that is the WinXP drive.

Now, account used are Power Users that doesn't allow to change anything in Disk Management.
I don't want to use the administrator group.
So the D:\ is reserve and hidden for the users.

But the "bug" is that when they plug any USB devices (most of the time, mini USB key), most of the time, the D:\ is attribuated, but not accessible...
So, either, you use a little trick, like to connect 2 USB devices -> you use the E:\
Or, I have to log with an administrative account and change the drive letter, but the only problem is when I m not present, the other guy are not able to change the drive letter...

How can I do, what line should I add or modify to reserve the D:\ letter.

I know that under Win98, you would have to change the line in the config.sys, but I am not sure under WinXP.

Thanks for the help.
Who is Participating?
SirtenKenConnect With a Mentor Commented:
My first thought was this:
There is a DOS command that will assign a virtual drive to a drive letter.
This may allow you to reserve a drive letter by virtualizing a "place holder" for it.
You can use the following from a batch file in the startup group:
Associates a path with a drive letter.
SUBST [drive1: [drive2:]path]
SUBST drive1: /D

  drive1:        Specifies a virtual drive to which you want to assign a path.
  [drive2:]path  Specifies a physical drive and path you want to assign to
                 a virtual drive.
  /D             Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

for example, "Subst c:\temp d:\" would give you a d:\ drive that points to the c:\temp directory

My second thought was that you could allow the root of d:\ to be visible, but hide/deny permissions to all files and folders within it.
ArlAuthor Commented:
thanks, the idea is good, even if I was thinking with something more in the registry... :-) !
I will try tomorrow as I m no more in the place.

ArlAuthor Commented:
Hi Sirtenken,

Sorry for having been so long... quite busy.
Ok, thanks for your tip, actually I used a setting that I disabled and normally everything is fine, but your idea was good and will be rewarded ! (I tested it, but just be sure that your "unmounting" the virtual drive at the beginning, because sometimes there are some strange behaviours ;-) )

Have a nice day and thanks for your help.

glad to have helped.

All Courses

From novice to tech pro — start learning today.