Kivin Posted January 29, 2007 Share Posted January 29, 2007 Hi everyone! Is anyone know how I can made programm autodetect disc? I meen detect inserting disc into CD-rom or removable disc into USB & skip floppy? Thanks Link to comment Share on other sites More sharing options...
ChrisL Posted January 29, 2007 Share Posted January 29, 2007 (edited) Does DriveStatus() not do what you want?DriveStatus ( "path" ) Return ValueValue ....... Interpretation UNKNOWN ....... Drive may be unformatted (RAW). READY ....... Typical of hard drives and drives that contain removable media. NOTREADY ....... Typical of floppy and CD drives that do not contain media. INVALID ....... May indicate the drive letter does not exist or that a mapped network drive is inaccessible. Edited January 29, 2007 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Kivin Posted January 30, 2007 Author Share Posted January 30, 2007 Thank you. Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted February 17, 2007 Share Posted February 17, 2007 (edited) Hi I can't get it working I want to exclude a floppy but include all other , the following code will only exclude the floppy when nog floppy is inserted CODEFunc DriveInfo() $DriveList = "|" $drive_set1 = DriveGetDrive("ALL") for $i = 1 to $drive_set1[0] $DriveType = DriveGetType($drive_set1[$i]) ; if $DriveType = "Fixed" or ($DriveType = "Removable" and $DriveStatus <> "NOTREADY") or $DriveType = "RAMDisk" then $DriveStatus = DriveStatus($drive_set1[$i]) $drive_set1[$i] = StringUpper($drive_set1[$i]) $DriveList = $DriveList & $drive_set1[$i] & "|" GUICtrlSetData ($List_d1,$DriveList,$drive_set1[1]) endif next EndFunc Could someone help me Thnx Emiel Edited February 17, 2007 by Emiel Wieldraaijer Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
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