What are you guys using in your VBScripts that are installing off of the cdrom? In the batch files im using the "FOR %%d IN...." command. Need something that looks for the WIN51 file in the root of the cdrom to use as an installation variable.
Thanks!
Page 1 of 1
Setting %CDROM% VB Variable?
#2
Posted 24 November 2004 - 04:47 AM
Many ways to do that...
Set FSO = CreateObject("Scripting.FileSystemObject")
Set AllDrives = FSO.Drives
For Each Drive In AllDrives
If Drive.DriveType = "4" Then
If FSO.FileExists(Drive & "\WIN51") Then
CDROM = Drive
Exit For
End If
End If
Next
If Len(CDROM) = 0 Then WScript.Quit
- ← [VB6] Read Playlist from ini
- Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
- Language Packs for OOT2D. →
Share this topic:
Page 1 of 1



Help

Back to top








