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 SkipVought 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
Jun 13, 2007
2
0
0
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.

Part and Inventory Search

Sponsor

Back
Top