Jump to content
Sign in to follow this  
net2dio

Only from CD/DVD

Recommended Posts

net2dio

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

Share this post


Link to post
Share on other sites
99ojo

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

Share this post


Link to post
Share on other sites
99ojo

Thanks... thats great

But remember Tools like Alcohol or other which are simulating ISO as CD Rom Drive.

;-))

Stefan

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.