Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read DVD Information.

Status
Not open for further replies.

lokeshinusa

Programmer
Joined
Jun 13, 2007
Messages
2
Location
US
Hello All,

I'm trying to write a small code which will compare the volume label specified in the script and the volumelabel of inserted DVD.
I wrote a piece of code but its not working..pls help

''''''''''''''''''''''''''''''''''''''''''
' Here is my code.
''''''''''''''''''''''''''''''''''''''''''
For each VolLabel in view

For each DRV in VolLabel
Do Until Drive[DRV] = "CD-ROM"
Set Drive = Drive[DRV].volume
Set Volume = Volume[VolLabel]
If Drive = Volume Then
Found = TRUE
MsgBox " Condition True - Found "
End if
Loop
DRV = DRV + 1
Next DRV

If Found = FALSE
MsgBox "Please Insert the Application installable media in Drives"
End if
Next VolLabel

Thanks.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top