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..