How to? ipconfig output in current window

Apr 26, 2011
San Francisco
When I run just ipconfig (it's on the PATH) at TC command line (Windows 10, TCC 21), it runs in a separate window (titled C:\WINDOWS\system32\ipconfig.exe ) then closes, as if I were double-clicking it in File Explorer. Is that normal?

Workaround is to use
cmd /c ipconfig
which shows ipconfig's output in the current TCC or TakeCommand window

- Scott B.
Apr 26, 2011
San Francisco
Thanks for the replies, and my apologies for delay in getting back on this.

Maybe my site has some weird security restriction. This is not a big problem for me, just puzzling. Some clues below in case you want to take a look.

FYI, I tried running ipconfig six ways. (Windows 10 Enterprise, 64 bit, ver, 1607; TCC 21.01.52 x64).
1. CMD stand-alone window or CMD window within a TC tab: ipconfig writes to screen as expected.

2. What I originally reported:Type "ipconfig" in a TCC console window (stand-alone in TCC, or in a tab in TakeCommand). I have no alias for ipconfig, but it is on my PATH; output of 'which' is:
> which /a ipconfig
ipconfig is an external : C:\WINDOWS\system32\ipconfig.exe
Executes ipconfig in a new window which then disappears.​

3. Defined a TC Tool Bar Button to start in new window, with command "%SystemRoot%\System32\ipconfig.exe", on running I get a Take Command 21 error box stating:
Access is denied.

4.Button with command "%SystemRoot%\System32\cmd.exe %SystemRoot%\System32\ipconfig.exe":
I get to a CMD tabbed console window, no apparent execution of ipconfig.

5. Button with a "/c", command "%SystemRoot%\System32\cmd.exe /c %SystemRoot%\System32\ipconfig.exe":
I get a tabbed window, presumably CMD, that executes ipconfig and then disappears.

6. .btm Batch file with same as #4 (no "/c") on 1st line, and pause on 2nd. It echoes the first line, then goes to a CMD prompt in the TCC window, which shows the windows version like CMD normally would, then next line is a CMD prompt, where the prompt is a single '[' (left bracket), at which I can run CMD commands, including ipconfig, normally. On typing EXIT, I get to the pause command in the batch file.

I tried a bunch of other apparently-console programs within System32, under TCC; all worked OK except chkdsk.exe, extrac32.exe, ipconfig.exe, all of which executed in a new window and disappeared. Security permissions on all the executables seemed the same.

Thanks again -- any suggestions welcome.

- Scott B.
Similar threads
Thread starter Title Forum Replies Date
vefatica Can't interrupt EVERYTHING's output with Ctrl-C Support 4
A How to? TEE - duplicate output to STDERR Support 3
FreezerBurnt ANSI Prompt messes up list output. Support 39
Ó Recent git output not shown on TCC Support 1
Peter Murschall TEE cannot handle Unicode output Support 2
C TEE command appending null characters to output Support 6
Jesse Heines webform output different in ver. 26 than ver. 25 Support 2
vefatica Piping the output of a DO loop. Support 4
vefatica TCMD output invisible on Win10 Support 22
B How can TCC make an output as a part of command string Support 2
Enigma Take Command 23 duplicates output Support 0
Joe Caverly Works with CMD.EXE, no output with TCC.EXE Support 7
S Output from debugger Support 4
M TCC incorrect dir output since Windows 1803 Support 6
A WAD Output redirection to IF block fails with "unbalanced brackets" Support 7
P Scrollable colored output Support 3
David McClelland TEE command puts it's output file in c:\ Support 4
vefatica How to? TPIPE ... see output right away? Support 4
T Fixed Unnecessary debug output Support 3
JohnQSmith Weird DIR output (missing lines) Support 1
J WAD Output redirection in tcexit looses data Support 31
vefatica Console output slower that before Support 8
Mordachai How to capture all console output from a TCMD session? Support 4
C Output continues after Ctrl-Break Support 8
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
I perl output is not visible Support 4
I v16 - cls corrupts output stream Support 7
D Fixed Minor problem: output not alligned in the tree command Support 1
vefatica WAD IDE, output window to foreground Support 3
R WAD Strange output from "memory" command Support 1
A How to? Set up a log file for all command output Support 3
A How to? Use TEE with .NET output Support 6
T How to? Logging Output from External Programs Support 4
Frank output of @ipaddress/@ipname Support 1
dcantor Unidentifiable output Support 16
Stefano Piccardi forum software writes debugging output Support 5
Stefano Piccardi TCC 13 vs. TCC 14 different FFIND /E"d$" output Support 1
H TPIPE: /FILTER and /OUTPUT unexpected incompatibility Support 6
Stefano Piccardi issue: redirecting GOSUB output Support 11
A How to? Pass output from ffind to another command in a BTM file Support 5
J Can you redirect output to printer device with echo? Support 1
A How to? How to enable UTF-8 output in tcmd.ini Support 9
W Ascii character output Support 12
S SELECT DEL (*D.DLL) - output curious Support 8
T eval[] crashes with negative binary output Support 1
E Redirect output from "start"-ed console Support 5
E Scrolling output to single, non-scrolling line Support 13
A Redirecting TCC output to a different RDP Session Support 6
D Start program without waiting and redirect output Support 6
vefatica ZIP's informative output Support 1

Similar threads