Here is VBA code that I use to launch a Named Instance incorporating the
Environ("USERNAME") variable:
Code: Select all
myPath = "C:\Program Files (x86)\Everything\Everything.exe -admin -startup -instance """ & Environ("USERNAME") & """"
Shell myPath, vbNormalFocus
This code works perfectly and loads the correct
Everything-daniel.ini file and I can see the name of the instance in the Everything search window caption:
everything named instance.GIF
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
Why does this code not quit the Named Instance? Is there different required syntax to close a Named Instance? Maybe I need to reference the Named Instance with the
-quit command?
You do not have the required permissions to view the files attached to this post.