Running command in Cmder from TC toolbar

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
raytc
Senior Member
Senior Member
Posts: 274
Joined: 2004-06-28, 11:03 UTC

Running command in Cmder from TC toolbar

Post by *raytc »

I created a button in the TC toolbar.
I want to find all outdated Python plugins clicking on the button (in Cmder.exe).

Configuration button:

c:\Tools\Cmder\Cmder.exe /START c:\Python37\Scripts\
parameters: pip.exe list --outdated
startpath: c:\Python37\Scripts

Error: unrecognized parameter.
If I add "pip.exe" add the end of the 1st line, the error message is: Folder doesn't exists.

What did I wrong?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Running command in Cmder from TC toolbar

Post by *Horst.Epp »

And why is "/START c:\Python37\Scripts\" not part of the parameters ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
raytc
Senior Member
Senior Member
Posts: 274
Joined: 2004-06-28, 11:03 UTC

Re: Running command in Cmder from TC toolbar

Post by *raytc »

Horst.Epp wrote: 2018-11-07, 14:36 UTC And why is "/START c:\Python37\Scripts\" not part of the parameters ?
And where do I put "pip.exe list --outdated"?

After "/START" there must be a folder or it will not work.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Running command in Cmder from TC toolbar

Post by *Horst.Epp »

raytc wrote: 2018-11-07, 14:56 UTC
Horst.Epp wrote: 2018-11-07, 14:36 UTC And why is "/START c:\Python37\Scripts\" not part of the parameters ?
And where do I put "pip.exe list --outdated"?

After "/START" there must be a folder or it will not work.
All parameters have to be in the parameters field and not part of the command.
So the parameters field looks like:
/START c:\Python37\Scripts\ put pip.exe list --outdated
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Running command in Cmder from TC toolbar

Post by *ghisler(Author) »

All parameters have to be in the parameters field and not part of the command.
Not really, you can put parameters also in the "Command" field. This is useful when you start the parameters field with a question mark "?", then you will be presented only the parameters in that field. It's also useful if you want to use environment variables, which would collide with the placeholders like %P%N used in the parameters field.

About your problem, are you sure that the folder needs to end with a backslash?

I suggest that you try various command lines directly in cmd.exe until you find the correct one.
Author of Total Commander
https://www.ghisler.com
raytc
Senior Member
Senior Member
Posts: 274
Joined: 2004-06-28, 11:03 UTC

Re: Running command in Cmder from TC toolbar

Post by *raytc »

ghisler(Author) wrote: 2018-11-08, 10:28 UTC About your problem, are you sure that the folder needs to end with a backslash?
It didn't make any difference.

Can't find a solution.
I decided to go back to CONEMU

Command: "c:\Tools\ConEmu_Console\ConEmu64.exe"
Parameters: -dir "c:\python37\scripts\" -run "pip.exe list --outdated" -cur_console:c

This works fine.

Just I can't find out how to stay in current directory (c:\python37\scripts\).
CONEMU just wants to close the window asking "Press Enter or Esc to close console..."
Post Reply