Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run programs from 64-bit system folder (disable redirection)
#2
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
Code:
Copy      Help
CreateSymLink "$desktop$\system64" "$system$" 1

The function is somewhere in forum and archive.qml, and here it is again:
Function CreateSymLink
Code:
Copy      Help
;/
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
Code:
Copy      Help
run "$desktop$\system64\msconfig.exe"

You see folder path as "$desktop$\system64", but actually it is "c:\windows\system32".


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)