Thanks for the advice. I still believe this whole redirection stuff is quite annoying (not your fault). Even the simplest menu's can be hard to make.
E.g. I have a main shortcut menu as a container for (expandable) sub-menu's. Each sub-menu contains a lot of run commands in menu form.
Amongst them msconfig.exe as we discussed earlier.
Trying to be smart (yeah, I know, my first mistake) I encapsulated the menu with your redirection solution.
Macro
Macro
#compile "____Wow64DisableWow64FsRedirection" ;;command 1
__Wow64DisableWow64FsRedirection x.DisableRedirection ;;command 2
Templatemenu "MenuMain" ;;command 3
x.Revert ;;command 4
Of course, that didn't work.
Than I put your solution in a single line, commands separated by semicolons.
Macro
Macro
System Configuration :<command1>;<command2>;<command3>;<command4>
That didn't work either. Created a little macro "msconfig" with the above commands:
Macro
Macro
System Configuration :mac "msconfig"
That worked! But to give it a nice icon I failed again.
Macro
Macro
System Configuration :mac "msconfig" * $system$\msconfig.exe,0
Of course for the same reasons described earlier. (Btw it is not possible to add comments behind that line, so
Macro
Macro
System Configuration :mac "msconfig" * $system$\msconfig.exe,0 ;;Some comments
doesn't work.)
Nevertheless, I appreciate you are trying to make QM more 64-bit friendly.