I have a .hta application and the below code.
By default, the below command opens file.bat in C:\Windows\ syswow64 \cmd.exe
How do I get it to open with C:\Windows\ system32 \cmd.exe?
A workaround would be to open the .hta file with C:\Windows\system32\mshta.exe instead of the syswow64 one, but I would like to see other ideas.
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "file.bat"
Many thanks in advance.