Unknown command

Jan 17, 2016
2
0
SysInfo:
Windows XP Pro SP 3
4NT 5.00U Windows XP 5.1
Copyright 1988-2003 Rex Conn & JP Software Inc. All Rights Reserved

Take Command 5.00U Windows XP 5.1
Copyright 1988-2003 Rex Conn & JP Software Inc. All Rights Reserved

I know, I know regarding Windows XP, but I still have uses for it. Besides, I
have Win 7 on another computer and Win 8.1 on another.

Anyway, all my .btm files are in directory C:\btm which is in the path as you can see from this echo command:

[C:\Download]echo %path
C:\Documents and Settings\All Users\Application Data\Oracle\Java\javapath;C:\Program Files\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WIN
DOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Notepad++;C:\Util32\;C:\Util32\Win32;C:\Util32\Win32\Nir
Soft;C:\Util32\Win32\SysInternals;C:\Util;C:\Boxer;C:\btm;C:\cmd;C:\Unix\usr\local\wbin;C:\aac;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\
Strawberry\perl\bin;C:\Program Files\CodeBlocks;C:\Program Files\CodeBlocks\MinGW\bin

And for easier readability from this perl script (# 14)
[c:\]perl perl\path.pl
1: C:\Documents and Settings\All Users\Application Data\Oracle\Java\javapath
2: C:\Program Files\Windows Resource Kits\Tools\
3: C:\WINDOWS\system32
4: C:\WINDOWS
5: C:\WINDOWS\System32\Wbem
6: C:\WINDOWS\system32\WindowsPowerShell\v1.0
7: C:\Program Files\Notepad++
8: C:\Util32\
9: C:\Util32\Win32
10: C:\Util32\Win32\NirSoft
11: C:\Util32\Win32\SysInternals
12: C:\Util
13: C:\Boxer
14: C:\btm
15: C:\cmd
16: C:\Unix\usr\local\wbin
17: C:\aac
18: C:\Strawberry\c\bin
19: C:\Strawberry\perl\site\bin
20: C:\Strawberry\perl\bin
21: C:\Program Files\CodeBlocks
22: C:\Program Files\CodeBlocks\MinGW\bin


echo %pathext
.COM;.EXE;BTM;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1

When I execute any of my .btms from the 4NT command line, they are found and run
as you would normally expect, but when I do the same from Take Command, it tells
me "unknown command". Searching the forums for this, produces quite a few
results, yet not my particular problem. So I'm wondering if anyone knows if it
might be something corrupt in the registry or a corruption in the file
associations. I can type the absolute path\filename.ext to execute it in Take
Cmd, or CD into C:\btm and type the complete filename.ext, but anything else is
ignored as unknown command.

I know Rex probably doesn't support this version any longer, so I was hoping
someone had come across this or something similar and knows the answer or where I
can find it. Thanks.
 
Dec 7, 2009
235
2
Left Coast, USA
Not directly related to your question, but: I also have a Perl script for making the path list human-readable, but I was able to use a simple TCC alias instead when I'm not running cmd.exe (which happens these days maybe once every six months and then only for 30 seconds or less). The "pathlist" alias definition is:

echo %=n %@replace[;,%=n ,%path]

Works just fine. The additional spaces in it are because I like to have the items in the path indented one space from the left.