Hey everybody,
I'm looking for a way to script the reassignment of a drive letter for a cdrom (diskpart doesn't 'see' CD drives), assign a partition the drive letter that the cdrom used to have, then format the partition with the new drive letter. I've tried creating a custom mmc console called diskadmin.msc and using M$ Scriptit to do this for me, but I can't get it to work since the mmc console is the active window, and the snap-in resides within it. Does anyone know if there is an executable within Win2k like there was in NT for getting to Disk Administrator from the command line? Basically I need diskadmin to run on it's own, and not within a mmc console window. Any help would be greatly appreciated.
Page 1 of 1
Looking for disk administrator executable
#2
Posted 10 June 2004 - 12:28 PM
Oh Alright, I'll give up my little utility. remember people, I had this first.
copy to your system32 directory - call from the command line to get usage.
It will change the drive letter of any installed CD/DVD drive(s) from the command line. It does no error checking - for example, if you try to assign the 1st cdrom drive as drive C:, it doesn't check to see if drive C: is already allocated and strange things like black holes may form.
copy to your system32 directory - call from the command line to get usage.
It will change the drive letter of any installed CD/DVD drive(s) from the command line. It does no error checking - for example, if you try to assign the 1st cdrom drive as drive C:, it doesn't check to see if drive C: is already allocated and strange things like black holes may form.
Attached File(s)
-
setcddl.exe (32K)
Number of downloads: 327
#4
Posted 11 June 2004 - 12:16 PM
So what's the syntax for this util? Can you say setcddl x: d: to move it from x: to d:, or do use setcddl d: and it grabs whatever CD drive it finds and assigns it the d:\ drive letter? I tried using setcddl.exe /? but no luck. Thanks,
Shawn
Shawn
#5
Posted 14 June 2004 - 10:44 AM
Just type setcddl.exe in the command window to get usage - NO SWITCHES.
Here, I'll do it for ya:
Here, I'll do it for ya:
C:\>setcddl ------------------------------------------------------------------------------ SETCDDL.EXE - Changes Drive letter assignments for devices in Win2000 Version 1.0 - March 17th, 2000 by Steven Haack - Microsoft Consulting Services ------------------------------------------------------------------------------ Usage: setcddl <Drive> <Device name> add a drive letter setcddl -r <Drive> remove a drive letter setcddl -c <Drive> Changes 1st CD-Rom to specified drive letter Example: setcddl e:\ \Device\CdRom0 Sets CD-Rom0 to drive e:\ setcddl -r e:\ Removes e:\ from associated device setcddl -c e:\ Changes 1st Cd-Rom to e:\ NOTE: You cannot set a device to a specified drive letter, if there is already a drive letter associated with that device. You must remove the current drive letter first, and then assign a new one. The -c option to change the drive letter of the 1st CD-Rom does the removal for you.
#6
Posted 14 June 2004 - 11:28 AM
stuffman, on Jun 10 2004, 11:21 AM, said:
Hey everybody,
I'm looking for a way to script the reassignment of a drive letter for a cdrom (diskpart doesn't 'see' CD drives), assign a partition
I'm looking for a way to script the reassignment of a drive letter for a cdrom (diskpart doesn't 'see' CD drives), assign a partition
Why diskpart doesn't see CD-ROM drives?
If I enter LIST VOL I get all types of drives with letters listed.
Then you can use SEL VOL x and REMOVE and ASSIGN LETTER=Y.
See this post for details
#7
Posted 15 June 2004 - 10:18 AM
Whoa, you were right. Diskpart does see CD drives. Thanks, that helps a lot! I've got all drive assignment handled through one script now!
Shawn
Shawn
Share this topic:
Page 1 of 1



Help
Back to top









