WAD cmd.exe under tcc doesn't find apps

Apr 29, 2009
35
0
Redmond, WA
Seen this before? Could there be some setting I have wrong in TCC? Hoping it's not a bug.

1. Run tcc
2. From prompt run cmd
3. Try to run a program found in directory or path without specifying file extension
Expected: runs
Actual: error msg

This is breaking running other 3rd party batch scripts that call cmd.exe to run apps, like the nodejs npm module. Running cmd.exe from Start > Run works fine, finds apps without specifying extension, error occurs only when cmd is run from within tcc

2013-06-06_1322.png
 
Hi,
No problem here, but I am running a newer release than you are. I am on 32-bit OS.

Joe
Code:
[C:\Windows\System32]ver
 
TCC  15.01.51  Windows Vista [Version 6.0.6002]
 
[C:\Windows\System32]whoami
optiplex9601\jlc
 
[C:\Windows\System32]cmd
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
 
C:\Windows\System32>whoami
optiplex9601\jlc
 
C:\Windows\System32>
 
May 20, 2008
11,388
99
Syracuse, NY, USA
Have a look at CMD's %PATH%. Could "Win64 File System Redirection" (OPTION\Startup)have anything to do with it?
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
Not reproducible here.

This is definitely not a TCMD or TCC issue -- unless you've found a catastrophic bug in the Intel hardware and the Windows OS security model. The parent process does not (cannot!) affect the child process's file search & execution behavior; CMD is talking straight to the Windows APIs and TCC is totally uninvolved. (Unless you're running plugins that are intercepting APIs?)

It's far more likely that you've got a different environment / registry / etc. configuration in the native TCC window vs. the CMD window. Try starting a CMD window, then run TCC, then CMD, and see if you get the same behavior.
 
Apr 29, 2009
35
0
Redmond, WA
Found the issue. In my tcstart.btm I had a line like this to add some extensions to the executable paths:
set pathext=%pathext%,.py,.rb
Worked fine in TC, but when dropping to cmd.exe from TC, cmd.exe got overwhelmed. Removing the %pathext% fixed the issue. Thanks to everyone for quick and thorough replies.
 
Similar threads
Thread starter Title Forum Replies Date
C Defaults for CMD.EXE under XP Pro sp3? Support 1
L FTYPE in TCC, less quirky than in cmd.exe Support 3
Joe Caverly PUSHD with UNC path in CMD.EXE Support 2
I how to make TCC default/replace cmd.exe? Support 9
M Command line parsing differences between cmd.exe and TCC Support 6
Joe Caverly Works with CMD.EXE, no output with TCC.EXE Support 7
L WAD ECHO. expansion of non-existent env-vars differs from CMD.exe Support 6
Joe Caverly "Functions" in cmd.exe batch files Support 6
P Labels in batch files: TCC vs CMD.exe Support 9
Joe Caverly CMD.EXE and filename(1).ext Support 3
TT's Help! Uninstalling TCC did not restore cmd.exe as Win10 default batch file processor. Support 4
D Tab completion differences with cmd.exe Support 3
R Difference in behavior of RMDIR vs. CMD.EXE? Support 5
D Run all .CMD batch files with CMD.EXE Support 16
R How to set comspec to point to cmd.exe? Support 5
noahcoad c:/hello.txt works in cmd.exe but not tcc.exe Support 1
noahcoad Fixed tcc /k not emulating cmd.exe w double quotes Support 1
A Auto-Complete aka F8 in cmd.exe Support 6
G TCMD does not get same result as cmd.exe Support 22
C .bat files works in cmd.exe, not in TCMD Support 6
daniel347x Different results with TCC than with cmd.exe Support 2
dolmen Compatibility issues with cmd.exe Support 1
daniel347x How to get Take Command to read in all current system environment variables that CMD.EXE sees? Support 13
M Take Command vs. cmd.exe Support 7
R Compatibility issue with CMD.EXE Support 2
R A collection of incompatibilities with CMD.EXE Support 6
D Peculiar symptoms w/ 4NT, TCC/LE vis a vis CMD.EXE Support 11
S CMD.EXE icon Support 1
sully9 How to? Unexpected %DATE% CMD variable format (vs DATE /T format) in CMDebug Support 1
Peter Murschall Single-line Do-CMD is a bit uncooperative. Support 6
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
T Date format date different from cmd Support 7
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
E TCC/CMD difference Support 5
S How to? Deinstalling TC/reinstating execution of bat files by cmd in Win7 Support 31
D How to? Pass OpenHere Folder to CMD? Support 6
R Difference between TCC and CMD: variable names with hyphens Support 4
M WAD "Pictures" directory is empty in TCC but not in CMD or Explorer Support 4
rps Cmd history recall Support 4
rps Documentation TITLE cmd docs Support 0
W Starting program for word to pdf conversion (difference cmd and tcc) Support 13
Joe Caverly Using this CMD technique from TCC Support 17
W If command - different with CMD Support 6
R FOR usage error from TCC but not from CMD Support 16
I findstr works in cmd but not in tcc Support 5
D Pasting Unicode data has different behavior on TCC and CMD Support 2
Joe Caverly tcommand(cmd) Support 13
Joe Caverly Works in debugger, not from cmd line Support 1
K CMD, TCC, VisualStudio 2017, VcVars* differences Support 1

Similar threads