SYS_DIR variable's behaviour is really strange under Windows XP x64.
This variable is presented as C:\Windows\system32 if Let, MessageModal commands are used. But it equals C:\WINDOWS\SysWOW64 if WriteLn, ReadLn, ReadFile, ExportData commands are used.
Just run the code below under Windows XP x64.
Code: Select all
Let>Path=%SYS_DIR%
MDL>%Path%
MDL>%SYS_DIR%
// Don't try to find the file below (SysDir_TEST.txt) in C:\Windows\system32 directory. It will be created in C:\WINDOWS\SysWOW64 directory!
WriteLn>%SYS_DIR%\SysDir_TEST.txt,nWLNRes,Is the current directory %SYS_DIR%?