Code: Select all
myPath = "C:\Program Files (x86)\Everything\Everything.exe -admin -startup -instance """ & Environ("USERNAME") & """"
Shell myPath, vbNormalFocus
The problem I am having is that I can't seem to Quit or Exit this instance using this code which previously worked before I added the Named Instance:
Code: Select all
C = "Everything.exe -quit"
Set w = CreateObject("WScript.Shell")
w.CurrentDirectory = "C:\Program Files (x86)\Everything\"
w.Run C, 0, True