Jump to content

Only from CD/DVD


net2dio
 Share

Recommended Posts

Can i create a file to go unless it is burned on a CD / DVD, if not give me a message error like "Missing file(s) ... " for example... ?

It is posible that?

thanks

Hi,

try this:

$drives = DriveGetDrive ("CDROM")
$cdrom = False
For $i = 1 To UBound ($drives) - 1
    If StringInStr (@ScriptDir, $drives [$i]) <> 0 Then
       $cdrom = True
       ExitLoop
    EndIf
Next
If not $cdrom Then
    MsgBox (0,"Error....", "Missing Files!")
    Exit
EndIf

;-))

Stefan

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...