and in this part I want to also assign the variables fullcurrent and targetpath:
Code: Select all
IF
{
(...)
if ( m = 1 ) ; and thus s = 2
{
fullcurrent := drive2 . ":" . path2 ."." . filename2 ; ERROR LINE 1
targetpath := drive2 . ":" . path1 ; 2
}
else ; i.e. m = 2 and thus s = 1
{
fullcurrent := drive1 . ":\" . path1 ."\" . filename1 ; ERROR LINE 3
targetpath := drive1 . ":\" . path2 ; 4
}
}
ELSE
(...)
I use AHK 1.1.34, and I simply don't understand why the "\" is not accepted within strings in such a concatenation, and it does not seem that "escaping" it would make sense there. (I know it's different in regex strings, but that's not the case here. Also, I did all the if / else / { / } / etc. correctly.)