pksysad Posted April 24, 2007 Posted April 24, 2007 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 overviewCD\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 *.CSVprompt:WMIC CDROM LIST BRIEF /FORMAT:CSV > C:\OUTPUT1.CSVresult: (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..
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now