Fargo Posted September 15, 2006 Posted September 15, 2006 Is there a way to know if my program is running from virtual or real CD drive? Thank you
lod3n Posted September 15, 2006 Posted September 15, 2006 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]
/dev/null Posted September 16, 2006 Posted September 16, 2006 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? CheersKurt __________________________________________________________(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 *
Fargo Posted September 16, 2006 Author Posted September 16, 2006 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 hereBut, why do you want to know the difference?Because I don't want my program to run from an emulator
/dev/null Posted September 16, 2006 Posted September 16, 2006 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 *
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now