Jump to content

Reassigning drive letters automatically


Recommended Posts


Es lebe Frankreich !

Hoch lebe Frankreich !

is:
Vive la France !

Longue vie à la France !

and

Hoch lebe Mdes, Mapdrive und Frankreich !
=
Longue vie à Mdes, à Mapdrive et à la France

:thumbup (I used ProZ)

Thanks a lot :w00t:

ps: The Google translator is very bad in this context :realmad:

Link to comment
Share on other sites

  • 3 weeks later...

Hi,

I stumbled accross your script.. and thought FANTASTIC, what a cool way to sort all of my drives out, rather than writing a diskpart script manually.... I am quite new to this, and was just understanding the process...

I am however experiencing problems

H: Volume 0     [[-No name-]] [DVD-ROM  ] [        ]   is NOT assignable...

...because it is probably the Boot Drive or it contains the PageFile

I: Volume 1     [HL5100     ] [DVD-ROM  ] [        ]   is NOT assignable...

...because it is probably the Boot Drive or it contains the PageFile

C: Volume 2     [XPBOOT     ] [Partition] [system  ]   is NOT assignable...

...because it is probably the Boot Drive or it contains the PageFile

D: Volume 3     [XPMAIN     ] [Partition] [boot    ]   is NOT assignable...

...because it is the System Drive

N: Volume 4     [sYSCACHE   ] [Partition] [        ]   is NOT assignable...

...because it is probably the Boot Drive or it contains the PageFile

F: Volume 5     [sTORE      ] [Partition] [        ]   is NOT assignable...

...because it is probably the Boot Drive or it contains the PageFile

G: Volume 6     [ARCHIVE    ] [Partition] [        ]   is NOT assignable...

...because it is probably the Boot Drive or it contains the PageFile

V: Volume 7     [VirtualPC  ] [Partition] [        ]   is NOT assignable...

...because it is probably the Boot Drive or it contains the PageFile

S: Volume 8     [VPCStore   ] [Partition] [        ]   is NOT assignable...

...because it is probably the Boot Drive or it contains the PageFile

I probably have a slightly different config thatn most, in that my C drive is about 100mb, and is used for the boot files only. My Windows is on D, with my pagefile (although I have written a script to move this to X after drive reassignment).

This is to enable me to clone my XP partition (D) onto any other partition, as a usable OS, as I have a multiboot environment, and it save multiple installs. My C drive therefore contains the boot info/boot manager...

I dont know why Im getting the above message.. something is getting confused somewhere... Ive attached my log file in the hope it can be easily identified...

Hope you can help...

Thanks

tmp_mapdrive.txt

Edited by drscouse
Link to comment
Share on other sites

FANTASTIC!! :D:D

I think Ive had a bit of success...

I was getting a bit confused when trying to figure out exactly what I needed to change in the script....

SET WINLANG=ENU

Should this be my only alteration...???

""D:\mapdrive.cmd"" called with the following parameters: [] [] [] []

Am I missing something here???

Can the dvd.x and drive.x files still be seen by the script when hidden, as I dont really wat them viewable in explorer/windows....???

Thanks

I have got a dvd.y and dvd.z on my ststemdrive, yet it will only reassign one of my 2 drvies (one is a cdrw/dvd combi, and the other a dvdrw). It removes the drive letter for the dvdrw, and is not visable.

TMP_MAPDRIVE.TXT

Edited by drscouse
Link to comment
Share on other sites

I was getting a bit confused when trying to figure out exactly what I needed to change in the script....

SET WINLANG=ENU

Should this be my only alteration...???

""D:\mapdrive.cmd"" called with the following parameters: [] [] [] []

Am I missing something here???

You should call MAPDRIVE.CMD with at least one parameters as said in the script begining:
:: Parameters:
:: ----------
::     1. Language ID (ENU, FRA, DEU,...).  No default value, mandatory.
::     2. TEST to do everything except the drives de/re-assignment.  The log file
::        TMP_MAPDRIVE.LOG is created: you can display it to see the expected assignments.
::        The environment variables TMP_VOLDESC- show the assignments to be done.
::     3. TempPath : Path where temporary files will be created.  Default is current directory.
::        Path could be enclosed in quotes and could terminated by a backslsh.
::        This is the 2d parameter if the 1st one (TEST) is omitted.

Next to come ;)

Link to comment
Share on other sites

Thanks - managed to figure it out, however it is only detecting one of my drives.. I have a CDRW/DVD combi, which it is reassigning letters to, but it remove the letter from my DVDRW, making it unusable!

Any ideas....??

I also wondered if the files on each drive could be hidden, and still work??

Thanks

Just got your PM.. thanks.. no rush!!

Edited by drscouse
Link to comment
Share on other sites

I have a CDRW/DVD combi, which it is reassigning letters to, but it remove the letter from my DVDRW, making it unusable!

Before any further tests, reassign the unusable DVDRW by:

DISKPART
SELECT VOLUME 1
ASSIGN LETTER x
EXIT

where "x" should be any letter.

Then uppercase the drive letters by renaming all your "Drive.x" to "Drive.X" (same with the 2 DVD.x). I will correct this later.

And before attempting reassigning really, call MAPDRIVE.CMD with a 2d parameter = to TEST, like in:

MAPDRIVE.CMD ENU TEST

.

Latest, test it on your actual Windows (i.e. not during a new installation): this will bequicker to test.

Edited by mdes
Link to comment
Share on other sites

No luck again Im afraid....

It still only changes the one drive...I have included the log again.

H: Volume 0    [[-No name-]] [DVD-ROM  ] [        ]  is NOT assignable...

...because it is probably the Boot Drive or it contains the PageFile

I have managed to simulate the problem on both drives, wherby it only changes one of them...

Strange...

Love the way the script works though, cant wait to get it on my UaCD!!!

Thanks for your help with this one!!

mapdrive.txt

Link to comment
Share on other sites

Ive noticed this:

REM --- Y to I [DISK1      ][DVD-ROM  ] [        ] Different Letter was Y: ---

SELECT Volume 0 

    REMOVE NOERR

REM --- Z to I [DISK2     ] [DVD-ROM  ] [        ] Different Letter was Z: ---

SELECT Volume 1 

    REMOVE NOERR

REM --- Y to I [DISK1      ] [DVD-ROM  ] [        ] Different Letter was Y: ---

SELECT Volume 0 

    ASSIGN LETTER I NOERR

REM --- Z to I [DISK2      ] [DVD-ROM  ] [        ] Different Letter was Z: ---

SELECT Volume 1 

    ASSIGN LETTER I NOERR

It would appear that it is trying to rename both drives to the same letter.. I have both a DVD.I & DVD.G on my system drive....

I think the first prob was somehow to do with a file association.. despite createing a text file, and renaming it in DOS to remove the .txt extension, the filename in explorer was just showing up as DVD, although it said X File in Tyoe, and the file icon was a text file icon, not a generic unknown windows one...

However, it still looks like it is trying to reassign both to the same....

Thanks for your help

EDIT: Just tried again, new files.. same as above, wants to change both to same letter....

Could the script not be confiugred to accept DVD1.X and DVD2.X??

Edited by drscouse
Link to comment
Share on other sites

Hmm... suppose I could implement this, and try to solve the DVD issue with a manual script... I

ve put my current Ua build on hold, as I would really like to use this script to automate drive letter reassignment. Especially since it took me ages to find out how to move my pagefile unattended.. I now need to reassign the drives, before I can move the pagefile, and others...

Edited by drscouse
Link to comment
Share on other sites

  • 2 weeks later...

Here is a new version (see the first post of this thread for downloading):

Many thanks to drscouse who helps me a lot to test this new version.

Now the reassignments of multiple DVD/CD is fully working :thumbup

Edited by mdes
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...