Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

If there's no PATH variable ...

May
12,834
163
... does TCC still check the "App Paths" key? See this thread:

https://jpsoft.com/forums/threads/mystery-excel-exe.7398/
https://jpsoft.com/forums/threads/mystery-excel-exe.7398/
Code:
v:\> path
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;g:\uty;g:\ttk;C:\Program Files\Microsoft Network Monitor 3\


v:\> which excel
excel is an external : L:\OFFICE~1\Office14\EXCEL.EXE

v:\> unset path

v:\> which excel
excel is an unknown command
 
No. TCC will search the current directory (or the explicit pathname) only.
But if PATH is set, even to something bogus, then "App Paths" will be searched ... odd!
Code:
v:\> unset path

v:\> which excel
excel is an unknown command

v:\> set path=;

v:\> which excel
excel is an external : L:\OFFICE~1\Office14\EXCEL.EXE
 
So?

If PATH isn't set, then "App Paths" is the least of your worries.

p.s.: This is 15+ year old behavior.
I quite agree. I see the behavior in 4NTv8. The OP in the thread I cited (me too) only unset path as a test.
 
It searches the path, and then apppath. I have a version of write.exe, that loads the jpsoft 'tc.exe' through an apppath 'tcu.exe'. However, if i create a tcu.exe in the path, then it will run that tcu.exe first, without getting to apppath.

So even if you have apppath set to something like excel.exe, it will find a command in the path first that uses this name.
 

Similar threads

Back
Top