View Full Version : Make virtual drives for frequently used folder (All)
leung.kenneth
11-21-2002, 12:57 AM
edit autoexec.bat,
and add a command Subst X: <Path Name>
eg. Subst X: C:\Windows
then an drive x will appear after reboot and the drive will become the folder of Windows
james3mg
11-26-2002, 12:58 PM
Can't get this to work in XP pro...any suggestions?
autoexec.bat entries are not recognized in XP with the exception of environment variables.
Allan
Forum Administrator
<a target="_blank" href=http://www.tweakdatabase.com/idealbb>tweakxp.com</a>
POBrien
11-26-2002, 03:03 PM
open notepad and add in the applicable line(s).
example
Subst X: C:\Windows
save the file as sub.bat and move the file into the start button/all programs/startup folder.
POBrien
james3mg
11-27-2002, 02:20 PM
Cool...it worked. Thanks.
Now, is there any command to un-Subst a drive, or do I just restart the computer?
POBrien
11-27-2002, 06:14 PM
Hey James,
You're welcome and thanks for posting back.
Yes there is. hit dos and type subst /? you'll get this
K:\Documents and Settings\admin>subst /?
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.
K:\Documents and Settings\admin>
Pat
james3mg
11-30-2002, 02:18 PM
worked great! :-D
Now, since we're all just having so much fun, is there any way of renaming the virtual drive something other than "Local Disk"? I can right-click on it and choose rename, but I was wondering if there's anything I can include in the commandline command or .bat file that may do it for me automatically. Thanks :-)
davestones
01-15-2003, 10:09 AM
how do i do this to link to a file with spaces in the name?
i type subst Q: C:\My Music Files and run the bat file i crated but it just throws up an error, "invalid parameter - Music". any ideas? (WinME user)
james3mg
01-15-2003, 10:13 AM
Put double quotes around the path...
Subst q: "C:\My Music Files"
Should work...I'm pretty sure that's how I have to do it.
davestones
01-15-2003, 10:16 AM
ah you're a genius. now my situation is as the other bloke's... how if possible can u automatically set the name of the drive to whatever u want?
except the only problem trying to rename my virtual drive is that norton antivirus wont allow it... thinks im performing "virus-like behaviour" lol...
[EDIT] and one final thing... how do i get the .bat dos window to close once finished? or to not be shown at all? its a bit annoying...
<P ID="edit"><FONT class="small">Edited by davestones on 01/15/03 10:23.</FONT></P>
DaveStones,
Right click on your *.bat file and select Properties.
On the Program Tab, place a check mark in the box to the left of Close on exit.
Good luck,
Nana /images/forums/icons/smile.gif
Poiter
02-05-2003, 06:24 PM
If you're on a network you could try the following...
Z:\>net use /?
The syntax of this command is:
NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
NET USE {devicename | *} [password | *] /HOME
NET USE [/PERSISTENT:{YES | NO}]
eg.
C:\>net use z: \\Poiter\Bucket
The command completed successfully.
Where Poiter is your computer name and Bucket is a shared folder. You can also include a password and make the drive 'persistent'.
This creates a network drive for your favourite folder. Windows WILL let you change the name for this drive.
Hope this helps.
james3mg
02-07-2003, 02:01 PM
maybe phrased another way...
I thought maybe I could use the 'label' command to rename my new virtual drive, but it tells me "access denied"
Any idea how to label something without getting denied access?
Thanks
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.