DarkBoost Posted June 8, 2008 Posted June 8, 2008 (edited) I am very new to AutoIT and still learning ways to do things. Anyways I am writing a script which mounts a Virtual Drive K: and wondering how I can pause the script so that it waits until the K: Drive exists before continuing? Would Pausing the script be the best method or maybe a loop command would be better etc.? Looking forward to your responses Edited June 8, 2008 by DarkBoost
Zedna Posted June 8, 2008 Posted June 8, 2008 WaitForDisk('K:\') MsgBox(0,'','Drive K:\ is ready') Func WaitForDisk($drive) While 1 DriveGetType($drive) If Not @error Then ExitLoop Sleep(100) WEnd EndFunc Resources UDF ResourcesEx UDF AutoIt Forum Search
DarkBoost Posted June 8, 2008 Author Posted June 8, 2008 wow so simple!thanks Zedna this worked a treat :-)
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