If there's no PATH variable ...

May 20, 2008
Syracuse, NY, USA
... does TCC still check the "App Paths" key? See this thread:

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
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!
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
May 20, 2008
Syracuse, NY, USA

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.
Nov 2, 2008
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
Thread starter Title Forum Replies Date
M How to set Path variable for non-executable file extensions in 4DOS Support 8
V Set path permanently from within TCC? Support 3
Jay Sage Command Will Not Run Using Short Name of Path Support 5
Joe Caverly PUSHD with UNC path in CMD.EXE Support 2
MickeyF Why doesn't my python program get executed without specifying its path? Support 2
D How to? Path problems in TCC20 Support 1
vefatica "COMSPEC path" Support 2
Patulus TCHistoryLog: TCC: (Sys) The system cannot find the path specified Support 15
D V19: toolbar /r "path\tctoolbar.ini" Support 1
C ECHOing the _CWD with a & in the path Support 7
David McClelland How to? Path Changes Support 4
gschizas Fixed Cannot use extended path to delete invalid file Support 3
nickles Fixed In batch files, %0 now evaluates to the absolute path Support 9
cgunhouse IFTP Path Issue in V17 - Fixed Support 7
M How to? List path getting short file and directory names... Support 10
M How to? Get both path to and target of symbolic link/junction... Support 2
N Command completion and PATH Support 0
noahcoad How to? Create shortcut with env var in path Support 4
Exolon Space within path and FOR Support 4
A WAD Dir daterange + multiple path wildcards crashes tcc Support 2
D TCC can't start app if @shfolder[42] used for path Support 1
fpefpe How to? Path(s) for Python Support 0
D TPIPE works without being in path, but not V; aemail Support 8
Stefano Piccardi IDE.exe start toobar button fails when % in script path Support 0
H 12.10 UNZIP ignores destination path spec Support 2
Phileosophos unzip not using specified path Support 5
D Extracting the current command line, extracting current path Support 4
Stefano Piccardi char class wildcard issue when [] in path Support 14
D Function to see if a UNC path is mapped? Support 9
williamleara Specifying path to TCMD.INI causes issues Support 8
hrensink Path length limit Support 9
CWBillow Adding to the path Support 6
D D:\Settings\Application contains an incorrect path? Support 0
M TCC cannot find the path specified Support 4
P Too much path in path Support 12
D Parsing an array variable to an array does not work Support 5
sully9 How to? Unexpected %DATE% CMD variable format (vs DATE /T format) in CMDebug Support 1
P Inserting string into a variable. Support 3
vefatica Setting array variable ignores leading spaces (and @execarray doesn't) Support 4
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
R Difference between TCC and CMD: variable names with hyphens Support 4
Joe Caverly Get a variable type Support 2
rps For loop internal %_for_files variable? Support 2
A How to safely print variable's value without quotes? Support 9
vefatica Array name in a variable? Support 3
nikbackm TCC 20 variable expansion bug Support 6
X How to set %_INIREAD result to variable Support 5
Charles Dye _USBS variable Support 2
BeechComer Debugger: how to set %1 variable? Support 3
Mordachai Variable followed by function constantly failing... Support 5

Similar threads