bourboncrow Posted March 5, 2014 Posted March 5, 2014 This is a batch file version of the code but i wonder how it can be done in autoit? im pretty new to autoit and i tried google but i didnt find anything so i assume im useless at google + autoit thanks in advance FOR %%i IN (Z Y X W V U T S R Q P O N M L K J I H G F E D C) DO IF EXIST "%%i:\1234.txt" (SET TEST=%%i)
jdelaney Posted March 5, 2014 Posted March 5, 2014 Helpfile: DriveGetDrive Returns an array, loop through with a For...To...Step...Next (also in help file) IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
bourboncrow Posted March 5, 2014 Author Posted March 5, 2014 $a = DriveGetDrive('ALL') For $i = 1 To $a[0] If FileExists($a[$i] & 'win8.install.txt') Then $installdrive = $a[$i] MsgBox(0, 'Message', $installdrive) ExitLoop EndIf Next If $i > $a[0] Then MsgBox(0, 'Message', 'File not found') Heres the code if someone needs it
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