Code: Select all
fileread, No1, List.txt
loop, parse, No1, `n
{
Runwait %comspec% /c ""%A_Scriptdir%\file.exe" "Folder1"",,hide
sleep, 200
gosub, fileexist1
sleep, 100
Traytip, FileNow1, Loop: %A_LoopField%
Sleep, 100
}
msgbox, done!
exitapp
return
fileexist1:
if !FileExist(A_Scriptdir . "\folder1\" . A_LoopField) ; main concern is here! Why it is not msgbox when the file is not found??? Every file should be in the folder but something
;file is missing and this function should return a messagebox if the A_LoopField value is not found in the folder...
{
msgbox, file is not existing
}
return
The !FileExist does not seem to work or I did an error??
Thanks,