November 24, 200421 yr 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!
November 24, 200421 yr Many ways to do that...Set FSO = CreateObject("Scripting.FileSystemObject")Set AllDrives = FSO.DrivesFor Each Drive In AllDrives If Drive.DriveType = "4" Then If FSO.FileExists(Drive & "\WIN51") Then CDROM = Drive Exit For End If End IfNextIf Len(CDROM) = 0 Then WScript.Quit
Create an account or sign in to comment