Jump to content

Recommended Posts

Posted

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:


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