Assign Folder to a Drive from command prompt

I

ihammerhands2000

i would like to be able to assign a folder to a drive from command prompt.
How can i do this? I have XP Home. Thanks
 
S

smlunatick

i would like to be able to assign a folder to a drive from command prompt.
How can i do this? I have XP Home. Thanks

Possiblym you need to 'subst' command:

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

Ken Blake, MVP

i would like to be able to assign a folder to a drive from command prompt.
How can i do this? I have XP Home. Thanks



Sorry, I don't understand what you're asking. Can you clarify what you
want to do? Give an example, if possible.
 
I

ihammerhands2000

You know when you go into msconfig and change the drive paths from there?
Where there is an option to assign it a folder in stead of a drive letter. I
was wanting to be able to do that from command prompt. is it possible?
 
K

Ken Blake, MVP

You know when you go into msconfig and change the drive paths from there?
Where there is an option to assign it a folder in stead of a drive letter. I
was wanting to be able to do that from command prompt. is it possible?



Sorry, I still don't understand what you want to do. Please explain
exactly what you want to accomplish and why. If we understand your
need, or desire, I, or someone else here, may be able to suggest a
solution that you haven't even considered.
 
U

Uwe Sieber

ihammerhands2000 said:
i would like to be able to assign a folder to a drive from command prompt.
How can i do this? I have XP Home. Thanks

XP has the MOUNTVOL command which can do this, but it is
quite unhandy because you have to deal with volume names
like \\?\Volume{2dc3c95f-dde6-11dc-b8cb-000102b35cc3}\.

My commandline tool ReMount is more handy. Sample:

remount x: c:\USB-Drive1

http://www.uwe-sieber.de/drivetools_e.html#ReMount


My Win32 service USBDLM can do it automatically for
certain drives:
http://www.uwe-sieber.de/usbdlm_e.html



Uwe
 
S

smlunatick

You know when you go into msconfig and change the drive paths from there?
Where there is an option to assign it a folder in stead of a drive letter.I
was wanting to be able to do that from command prompt. is it possible?





- Show quoted text -

What are you asking? MSCONFIG does not have place to drive path
beside in the BOOY.INI. BOOT.INI should not be messed with besides
from within MSCONFIG.
 
I

ihammerhands2000

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top