MSFN Forum: define CD\DVD-RW and assign fixed drive letter W - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

define CD\DVD-RW and assign fixed drive letter W Rate Topic: -----

#1 User is offline   pksysad 

  • Group: Members
  • Posts: 1
  • Joined: 28-February 07

Posted 23 April 2007 - 06:09 PM

Hi there,
I'm trying to make a batchfile that auto-assigns Drive-letters by identifing a (dvd burner) DVD-RW.
The Windows XP SP2-unattended installation will be used on computers that have one or two CD\DVD drives.

Drive overview
CD\DVD-RW to W:
CD\DVD-ROM to X:
(other logistic drives D:, E:, F:, made by diskpart afterwards)

I used the command WMIC at prompt and saved results as plain text in an *.CSV

prompt:
WMIC CDROM LIST BRIEF /FORMAT:CSV > C:\OUTPUT1.CSV

result: (example=c:\output1.cvs)
Caption							Drive  Manufacturer			  VolumeName  
LITE-ON DVDRW SOHW-1673S		   D:	 (Standard CD-ROM drives)			  
BQ3264V HUV982K SCSI CdRom Device  E:	 (Standard CD-ROM drives)


Search the *.CSV for string with 'FIND /v /c "RW " | FIND /v "-ROM"
Then set variable %DVDRW%

Only i can't seem to figure out on how to handle the next few steps any more. I'm considering if WMIC is actualy the right move.. :unsure:


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy