Hello
I have still problems understanding AutoHotKey
I tried to replace
Code:
if A_Index = 1
X = %A_winDir%\Temp\*.*
else if A_Index = 2
X = %userprofile%\Lokale Einstellungen\Temp\*.*
with
Code:
dirs = %A_winDir%\Temp\*.*,%userprofile%\Lokale Einstellungen\Temp\*.*
and then
Code:
Loop,parse,dirs,`,
{
Loop,%Dirs%,1,1
FileRemoveDir,%A_LoopFileFullPath%,1
FileDelete,%Dirs%
}
This is not working - Could anybody tell me why?
Ore is there another way to replace 5 or 6 if - else like the above one with a shorter solution?
Andy