copperman2 Posted March 28, 2016 Posted March 28, 2016 (edited) BecauseĀ .exe fileĀ random name every run. $Array1 = _FileListToArray(@ScriptDir, '*.exe', 1) For $i = 1 To $Array1[0] If FileGetSize($Array1[$i]) = 5561344 Then RunWait($Array1[$i]) EndIf Next My code doesn't work. please help. Edited March 28, 2016 by copperman2
AutoBert Posted March 28, 2016 Posted March 28, 2016 You must use the $bReturnPath param in _FileListToArray . copperman2 1
copperman2 Posted March 28, 2016 Author Posted March 28, 2016 3 hours ago, AutoBert said: You must use the $bReturnPath param in _FileListToArray . Thank you.
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