Setting Up A Persistent Virtual Drive On Windows/XP
Setting Up A Persistent Virtual Drive On Windows/XP
My favorites | Sign in
Support browsers that contribute to open source, try Firefox or Google Chrome.
Code license:
Abstract GNU General Public License v2
Associates a path with a drive letter and extends the standard SUBST command allowing to create Labels:
persistent substituted drives between startups. windows, command-line-interface,
commandlineinterface, windows-
registry, windowsregistry, registry,
History virtual-drive, virtualdrive, persistent-
subst, persistentsubst, persistent,
permanent, SUBST, REG, REGEDIT
Featured downloads:
psubst_v2_4.zip
Show all »
Feeds:
Project feeds
Owners:
Ildar.Shaimordanov
People details »
2009/03/06 - Version 2.4 Stable. Earlier, to see persistent drives the 'REG QUERY' command was made to the temporary file. Now
2009/01/27 - Version 2.3 Stable. Separate view for the SUBSTed disks and persistent SUBSTed disks. Thus PSUBST /P shows persistent disk
2008/09/22 - Version 2.2 Stable. The minor bug was fixed: Unable to remove record from the registry when drive was unsubstituted alread
2008/09/04 - Version 2.1 Stable. Tests has been provided and it works properly.
http://code.google.com/p/psubst/ 6/23/2010
psubst - Project Hosting on Google Code Page 2 of 6
2008/09/02 - Version 2.0 Beta. Now the REG utility is used instead of the REGEDIT.
2008/09/02 - Version 1.2. The problem of quoted arguments in the IF "%*" == "" construction was fixed.
2008/08/31 - Version 1.1. Minor changes (the more accurate init of vars, unified names of vars).
2008/08/30 - The first release.
So to reach targets in this folder it does not need to type the full path or go over a tree of folders in the Explorer window. To select the Z: drive is
enough.
Do we need it?
There is several certain examples when this feature is needful:
subst Z: /D
http://code.google.com/p/psubst/ 6/23/2010
psubst - Project Hosting on Google Code Page 3 of 6
subst
Shortcomings
Indefinite format
Inconstancy
However restart of a system destroys a virtual disk. What to do? A disk can be created after startup. But what to do, when a disk is needed on
early steps of a startup? For example, to run services? There is system feature to start a virtual disk from the system registry:
REGEDIT4
It is enough to create a text file with the extension .REG and run it. When the next starting up of a system, the virtual disk will be exist at logon. It
needs to define a name of disk and path. Note that each backslash in the path is doubled.
http://code.google.com/p/psubst/ 6/23/2010
psubst - Project Hosting on Google Code Page 4 of 6
Can it be joined?
Answer is yes! This article is the result of the work devoted to availability of joining both features. The batch script was developed for cover
problems described earlier. Also it adds a lot of owned features.
Standard
As well as the standard SUBST command this script named as PSUBST.BAT implements all standard features of the command.
Create a disk:
Delete a disk:
psubst drive1: /D
psubst
Extended
Typing the /P argument you run the script with the extended features to work with persistent virtual disks.
http://code.google.com/p/psubst/ 6/23/2010
psubst - Project Hosting on Google Code Page 5 of 6
psubst drive1: /P
psubst drive1: /D /P
psubst /P
Additional features
Great advantage of the script is independency of existence or lack of the trailing backslashes. It means that incorrect examples described earlier
in this article will work always – incorrect input arguments will be transformed to the required format and the command will execute substitution
successfully. Nevertheless the standard command works with the slashes in a path correctly, the script transforms these to backslashes usual in
Windows.
New shortcomings
How to install?
Download the archive following by the download link, unpack it or checkout the source and locate the single file to comfortable place in your hard
disk.
Related links
SUBST home
http://code.google.com/p/psubst/ 6/23/2010
psubst - Project Hosting on Google Code Page 6 of 6
http://code.google.com/p/psubst/ 6/23/2010