Original command line?

May 20, 2008
603
0
Sammamish, WA
When I came in to work this morning, my computer had rebooted itself
(presumably for some useful Microsoft updates) and I had four stand alone
tcc windows remaining on my screen.

Is there a way to see what the original invocation was? e.g. "c:\program
files\jpsoft\tcmd11\tcc.exe /c foobar"

--
Jim Cook
2010 Sundays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Monday.
 
Dec 17, 2009
39
0
Germany
Is there a way to see what the original invocation was? e.g. "c:\program files\jpsoft\tcmd11\tcc.exe /c foobar"
Depending on how big your screen buffer and history list settings are, you could in each of the four:

- scroll back using Alt + the arrow keys

- call up the command history window with the Page Up key

- type the history command with the options /p for page-wise output, and /n for no dupes. Commands are displayed in chronological order, i.e. oldest first.
 
May 20, 2008
603
0
Sammamish, WA
Thanks, Charles. I should have thought of that. How that escaped my
attention, I do not know. I use procexp all the time, and in fact was just
showing somebody that usage this morning. /headslap

Arminius: Thank you, but I wasn't clear that the command would not be in the
history, but instead was passed in initially on the command line to
tcc.exe.
*
*
On Mon, Jun 28, 2010 at 8:36 AM, Arminius <> wrote:


> ---Quote (Originally by Jim Cook)---
> Is there a way to see what the original invocation was? e.g. "c:\program
> files\jpsoft\tcmd11\tcc.exe /c foobar"
> ---End Quote---
> Depending on how big your screen buffer and history list settings are, you
> could in each of the four:
>
> - scroll back using Alt + the arrow keys
>
> - call up the command history window with the Page Up key
>
> - type the history command with the options /p for page-wise output, and /n
> for no dupes. Commands are displayed in chronological order, i.e. oldest
> first.
>
>
>
>
>



--
Jim Cook
2010 Sundays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Monday.
 
May 20, 2008
11,437
99
Syracuse, NY, USA
On Mon, 28 Jun 2010 12:00:19 -0400, Jim Cook <>
wrote:

|> Is there a way to see what the original invocation was? e.g. "c:\program
|> files\jpsoft\tcmd11\tcc.exe /c foobar"

I know TCSTART has access to the command line args used to create the
TCC process. I was a little surprised that the command line is not
available later.

I added _STARTUPCMD to the 4UTILS plugin. It was nearly trivial;
maybe Rex will include such a variable in the next version. New
4UTILS on lucky.syr.edu and barnyard.syr.edu.

Code:
v:\> uhelp _startupcmd
TCC process command line

v:\> echo %_startupcmd
d:\tc11\tcc.exe /q
--
- Vince
 
May 26, 2008
537
4
Why did updates trigger TCC? Did you replace the compsec variable? Or change the default association for cmd?

I have always been very reluctant to do either, since TCC is not fully compatible with CMD.
 
May 29, 2008
571
4
Groton, CT
On Mon, 28 Jun 2010 12:00:19 -0400, Jim Cook <>
wrote:

I added _STARTUPCMD to the 4UTILS plugin. It was nearly trivial;
maybe Rex will include such a variable in the next version. New
4UTILS on lucky.syr.edu and barnyard.syr.edu.

CMDCMDSPEC does this, too.
 
May 20, 2008
11,437
99
Syracuse, NY, USA
On Mon, 28 Jun 2010 21:18:09 -0400, dcantor <>
wrote:

|---Quote (Originally by vefatica)---
|On Mon, 28 Jun 2010 12:00:19 -0400, Jim Cook <>
|wrote:
|
|I added _STARTUPCMD to the 4UTILS plugin. It was nearly trivial;
|maybe Rex will include such a variable in the next version. New
|4UTILS on lucky.syr.edu and barnyard.syr.edu.
|---End Quote---
|CMDCMDSPEC does this, too.

What is CMDCMDSPEC?

Do you mean _CMDSPEC? That just gives the program name. See the
difference:

Code:
v:\> type startupcmd.bat
echo %_startupcmd
echo %_cmdspec

v:\> %comspec /c startupcmd.bat
D:\TC11\TCC.EXE /c startupcmd.bat
D:\TC11\TCC.EXE
 

samintz

Scott Mintz
May 20, 2008
1,503
16
Solon, OH, USA
I believe this is a Windows 7 feature. When Win7 installs an update and
reboots your PC, it attempts to relaunch all the same apps that were
running at the time it rebooted. I'm just guessing at that as I have
witnessed similar behavior. However, I haven't read anything about it.

-Scott




Rod Savard <> wrote on 06/28/2010 09:08:30 PM:


> Why did updates trigger TCC? Did you replace the compsec variable?
> Or change the default association for cmd?
>
> I have always been very reluctant to do either, since TCC is not
> fully compatible with CMD.
>
>
>
>
 
May 29, 2008
571
4
Groton, CT
On Mon, 28 Jun 2010 21:18:09 -0400, dcantor <>
wrote:

|---Quote (Originally by vefatica)---
|On Mon, 28 Jun 2010 12:00:19 -0400, Jim Cook <>
|wrote:
|
|I added _STARTUPCMD to the 4UTILS plugin. It was nearly trivial;
|maybe Rex will include such a variable in the next version. New
|4UTILS on lucky.syr.edu and barnyard.syr.edu.
|---End Quote---
|CMDCMDSPEC does this, too.

What is CMDCMDSPEC?

Do you mean _CMDSPEC? That just gives the program name. See the
difference:

Code:
v:\> type startupcmd.bat
echo %_startupcmd
echo %_cmdspec

v:\> %comspec /c startupcmd.bat
D:\TC11\TCC.EXE /c startupcmd.bat
D:\TC11\TCC.EXE


Oops. I meant %CMDCMDLINE%

See cmd_comp.htm in the help file.
 
Similar threads
Thread starter Title Forum Replies Date
old coot tee command cancels colors Support 14
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 9
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
K Take Command fox XP? Support 7
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
fpefpe How to? command echo in title line/bar Support 2
U Command help on file names Support 5
vefatica Command line DO with no closing parenthesis? Support 9
vefatica Command history search is off Support 7
H How to? How can I say "if the command separator is not ~ then setdos /C~" Support 8
N Command execution slows down in TCC Prompt after a while Support 6
R Long commands retrieved from command history have blank line when wrapped Support 20
jpeni Take Command Language Examples Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
fpefpe winfr command Support 4
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
M Selecting test "off by one" problem in Take command Support 4
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
R How to? Open Take Command at current folder Support 7
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0

Similar threads