Jump to content

Real vs. Virtual CD


Fargo
 Share

Recommended Posts

AutoIt can see if a drive is one of these types: "Unknown", "Removable", "Fixed", "Network", "CDROM", "RAMDisk"

Try this:

$mydrive = stringleft(@scriptdir,stringinstr(@scriptdir,"\"))
$var = DriveGetType( $mydrive)
MsgBox(4096, $mydrive &" Drive Type:", $var)

If you get "Unknown" or "", perhaps it is a virtual CD, but most virtual CD emulators will say that they are "CDROM". Give it a shot, and report back if it works or not.

[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Link to comment
Share on other sites

Is there a way to know if my program is running from virtual or real CD drive?

Thank you :)

Most certainly NO. All of the virtual CD drive software I know of simulate some kind of SCSI CDROM drive. So, you cannot say if it's real or virtual without really deep knowledge about the emulation software.

But, why do you want to know the difference?

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Most certainly NO. All of the virtual CD drive software I know of simulate some kind of SCSI CDROM drive. So, you cannot say if it's real or virtual without really deep knowledge about the emulation software.

This is correct. DriveGetType() has no work here

But, why do you want to know the difference?

Because I don't want my program to run from an emulator :)
Link to comment
Share on other sites

Because I don't want my program to run from an emulator :)

O.K. and WHY?

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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...