03-20-2012, 08:06 PM
Other way.
Create symbolic link to system32 somewhere, and run files through it. Then file system redirection is not applied.
This macro creates symbolic link system64 on desktop. QM must be admin.
Macro Macro1676
The function is somewhere in forum and archive.qml, and here it is again:
Function CreateSymLink
example
You see folder path as "$desktop$\system64", but actually it is "c:\windows\system32".
Create symbolic link to system32 somewhere, and run files through it. Then file system redirection is not applied.
This macro creates symbolic link system64 on desktop. QM must be admin.
Macro Macro1676
The function is somewhere in forum and archive.qml, and here it is again:
Function CreateSymLink
;/
function $symlink $target [flags] ;;flags: 1 folder
;Creates symbolic link.
;Error if fails.
;If symlink exists and is not folder, deletes.
;Symbolic links are supported on Vista and later.
dll- kernel32 !CreateSymbolicLinkW @*lpSymlinkFileName @*lpTargetFileName dwFlags
str s1.expandpath(symlink)
if(dir(symlink)) del symlink; err
str s2.expandpath(target)
if(!CreateSymbolicLinkW(@s1 @s2 flags)) end _s.dllerror
SHChangeNotify SHCNE_CREATE SHCNF_PATHW +@s1 0
example
You see folder path as "$desktop$\system64", but actually it is "c:\windows\system32".