i need to make my program to check for a specific file existance on CD Or DVD rom ?
here is my code
'Exit Script
WScript.Quit()
here is my code
Option Explicit
'Set Dimension
DIM fso
'Set Object
Set fso = CreateObject("Scripting.FileSystemObject")
'Create Condition
If (fso.FileExists("CD,dvd:\CDcheck.exe")) Then
CreateObject("WScript.Shell").Run "program.exe"
Else
'Alert User
WScript.Echo("Please Insert program CD!")
End If
'Exit Script
WScript.Quit()