Jump to content
Sign in to follow this  
Fargo

Real vs. Virtual CD

Recommended Posts

Fargo

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

Thank you :)

Share this post


Link to post
Share on other sites
lod3n

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]

Share this post


Link to post
Share on other sites
/dev/null

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 *

Share this post


Link to post
Share on other sites
Fargo

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 :)

Share this post


Link to post
Share on other sites
/dev/null

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 *

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.