If there's no PATH variable ...

May 20, 2008
9,351
62
Syracuse, NY, USA
... 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
 
May 20, 2008
9,351
62
Syracuse, NY, USA
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
 
Nov 2, 2008
204
1
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.