How is this program found?

May 24, 2010
Northlake, Il
Yesterday I installed a new program I got off of the web named Notepad++ (it's a much-enhanced version of notepad that doesn't have notepad's line-length limitations for example). But there's something strange (to me at least) going on here: I can run the program in TCC no matter what the current directory is by simply entering a "notepad++" command. Of course this wouldn't be strange if the directory containing the program was in the "path" environment variable, but it isn't according to the standard Windows "where" command. Nor is it a TCC alias (how would it know to create a TCC alias, anyway?). And stranger yet if I run a cmd session from within a TCC session (just by typing "cmd" and hitting enter, of course) and then enter a notepad++ command, I get a "'notepad++' is not recognized as an internal or external command, operable program or batch file." error message - whatever the mechanism for starting the program is in TCC it is only known to TCC. I suppose this isn't important other than it really bugs me when there's something going on with my computer that I don't understand at all even in principle.
May 20, 2008
Syracuse, NY, USA
Check out the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths. TCC looks in there; CMD doesn't.
May 20, 2008
Syracuse, NY, USA
May 20, 2008
Elkridge, MD, USA
...where is this ... documented?
Windows_NT (even its first version) is a highly complex OS, in some ways much more complex than e.g. VMS (now OpenVMS, one of NT's ancestors). VMS documentation is a pile of more than 10 feet of 3-ring binders, just for the OS and the file system, and it still does not cover everything. Yes, I would like to have my own copy of the whole documentation - yet I know I would not ever look at more than one page out of a thousand!

As to how to find an external (to TCC) program which TCC finds but Windows or some of its components, e.g., CMD, do not, the WHICH command and the @SEARCH[] function of TCC are your friends. You can even use TCC's SHORTCUT command (or Charles Dye's plugin command MKSC) in combination with @SEARCH to create a desktop shortcut to run it!
May 24, 2010
Northlake, Il
I almost can't believe I'm saying this :))) but when I was an IBM MVS programmer many years ago, I felt that everything was documented in a much shorter pile than you say was needed for VMS; and I felt I had (and had a good reputation for) having a handle on almost all of it. Now I wlll admit that in many ways operating systems are much more advanced then they were then, but I have to ask how much all of that advancement was really an advancement. If a "feature" is so obscure that nobody knows about it, it really shouldn't be there at all in my opinion.

And Steve, WHICH, @SEARCH, SHORTCUT, and MKSC all tell you some variation of what and where a command is (which I knew), it doesn't tell you how TCC found it there which was the original question.

But thanks to all of you for the above.
Jan 19, 2011
Norman, OK
Windows_NT (even its first version) is a highly complex OS, in some ways much more complex than e.g. VMS (now OpenVMS, one of NT's ancestors).

Coincidence that WNT is each letter of VMS incremented by one?


Scott Mintz
May 20, 2008
Solon, OH, USA
Remnants of HAL 9000...

Originally, Windows NT was co-developed between IBM and Microsoft and was initially called OS/2 NT. The NT stood for New Technology. But after IBM and Microsoft divorced, Microsoft took over sole development and renamed it Windows NT. Dave Cutler (if memory serves) was the chief architect of both VMS and Windows NT.
Similar threads
Thread starter Title Forum Replies Date
C Add link to ewriter help to program group... Support 3
H Behavior change re piping a string to a Java program Support 1
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
W Starting program for word to pdf conversion (difference cmd and tcc) Support 13
MickeyF Why doesn't my python program get executed without specifying its path? Support 2
R How to? START program as top window? Support 2
M "less" program that works in TC 18 Support 12
MickeyF running program from script and (not) returning to script Support 12
C INSTALLED returnes same program multiple times Support 14
C Recommend a Print program Support 1
MickeyF running a program from cmdline versus in batch file Support 1
C tcmd.ini not loading from program dir? Support 5
Joe Caverly Determine if program started from command prompt Support 2
C WAD TCC: (Sys) C:\Program Files\JPSoft\TCMD17\tcc.exe is not a valid Win32 application. Support 6
C Win7 Program Data.... Support 2
M How to? Start a program on log on elevated abovenormal Support 5
MickeyF how to determine which program will execute a file Support 10
D New 64-bit install goes to Program Files x86 Support 3
A How to? Run a TCC command from external program Support 2
C "Program Files" .vs. "Program Files (x86)" Support 2
BobK "do you want to allow the following program to make changes to this computer" Support 3
M How to? Get the return code from an external program... Support 8
C start /wait /pgm "program name" ^ ketstack n/w Support 3
L File association: System cannot find the associated program Support 30
vefatica c:\program? Support 4
D Start program without waiting and redirect output Support 6
nikbackm Alias - launch external program - batch file Support 16
Joe Caverly Program gives error if %_row > 25 Support 0
dcantor Program abort with tab bar Support 2
fpefpe escapes getting into program Support 10
M Invoking a DOS command within a C++ program Support 1
J 4NT Error when running 'system' from a program to execute a .BTM Support 3
C start/tab of a GUI program hangs TCMD Support 6
Joe Caverly The requested lookup key was not found in any active activation context Support 3
thorntonpg F1 on command line The webpage cannot be found Support 5
vefatica The specified procedure could not be found Support 3
electrotype Error using TCC: "Label not found" Support 6
p.f.moore TCMD 10.0.57 new install - fails because perl510.dll not found Support 4

Similar threads