sorry , have no answer, only a small test-script
(wishing a nice sunday)
first example is wrong ( as you mentioned ) , autohotkey works fine, just avoid the second backlash
a small test - script to compare , first example shows the same files with 2-backlash ( as it is in the script also )
Code: Select all
;-------- http://ahkscript.org/boards/viewtopic.php?f=5&t=2757 ---
f1=%a_scriptdir%\test55.txt
f2=%a_scriptdir%\test66.txt
ifexist,%f1%
filedelete,%f1%
ifexist,%f2%
filedelete,%f2%
Dir := "c:\WINDOWS\"
Loop, %Dir%\*.*
e .= A_LoopFileFullPath "`r`n"
fileappend,%e%,%f1%
run,%f1%
Dir := "c:\WINDOWS"
Loop, %Dir%\*.*
h .= A_LoopFileFullPath "`r`n"
fileappend,%h%,%f2%
run,%f2%
e=
h=
exitapp