fsUK Posted May 5, 2006 Share Posted May 5, 2006 I want to use autoIt to run a virus scan prog when a removeable device is inserted. So basicly i need a wait until drive exists script. Any ideas? Link to comment Share on other sites More sharing options...
seandisanti Posted May 5, 2006 Share Posted May 5, 2006 I want to use autoIt to run a virus scan prog when a removeable device is inserted. So basicly i need a wait until drive exists script.Any ideas?i am pretty sure this has been covered before, (meaning search may give you better response than mine) you should be able to use drivestatus() or drivegetlabel() to check either if the removable drive is ready, or to check if any of the drives showing on the system are your removable drive. toss that in a loop with a condition to call your other function if drive is found/ready. Link to comment Share on other sites More sharing options...
Micha1405 Posted May 5, 2006 Share Posted May 5, 2006 (edited) Maybe this will help to start: CODE do $listDrives=DriveGetDrive( "REMOVABLE" ) If NOT @error Then $chk=True Else $chk=False EndIf until $chk=True msgbox (0,"Removable Device dedect","Removable Device dedect") ;Start what you want Edited May 5, 2006 by Micha1405 My TrayToolBar Link to comment Share on other sites More sharing options...
fsUK Posted May 7, 2006 Author Share Posted May 7, 2006 Thanks Link to comment Share on other sites More sharing options...
fsUK Posted June 21, 2006 Author Share Posted June 21, 2006 Hi i know its been a long time since i started the thread but i looked at it and thought hmm"HELP" but ive been pretty busy so i left it. Can you help me with implementing this script? Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 21, 2006 Share Posted June 21, 2006 Hi, just a question. Why do you want to run a prog. at all time just to start a scan when USB-Stick is plugged in? Normally you have an realtime scanner running. How often do you plug something? I think scripting the start scan from drive .... is better. Just a thought. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
fsUK Posted June 27, 2006 Author Share Posted June 27, 2006 Well im runnig AVG free and its a shared computer into which lots of different memory sticks get shoved in. I could ask every1 to scan their flash drives when they plug them in but most wouldnt bother Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 27, 2006 Share Posted June 27, 2006 Well im runnig AVG free and its a shared computer into which lots of different memory sticks get shoved in. I could ask every1 to scan their flash drives when they plug them in but most wouldnt botherHI,wouldn't it be better to scan the hdd of the pc every lets say day at 12 o'clock than scanning the usb-drives? You want to protect the pc and not the USB-drives, right?Normally the scanner should notice itself if something changes, so you do not have to do a full scan.Just my 2 cents.So long,Meg Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times 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