Cmder: Run notepad after run Cmder.exe?

Created on 8 Feb 2019  路  10Comments  路  Source: cmderdev/cmder

How run notepad after run Cmder.exe?

For example "c:\MyProgarms\cmder\Cmder.exe /START c:\windows\notepad.exe"

Does't work....

Most helpful comment

Time to upgrade. Also you may want to put your script in '%cmder_root%\config` and call it from there.

All 10 comments

A batch file that runs one then the other:

Cmder_notepad.bat

Cmder.exe
Notepad.exe

Ok , i see, you very smart 馃 :)

How run "ping exe" in cmder window

like cmd.exe /k "ping.exe"
but
cmder.exe /k "ping.exe" or something...

Was not trying to be 'smart'. What you ask is not possible, cmder is not a shell cmd.exe is. I simply answered your question with less detail than you wanted.

is not possible

I'm doubt

You may be able to create a task in cmder that does this and then point to that task via a cmder command line arg, but you cannot do this with cmder.exe alone. If anyone knows this I do, I am one of the maintainers of this repo.

I am however on a phone at the moment trying to answer your questions.

I'm done with it.
Hardcoded info (don't have much time).
The command:

ConEmu.exe /Icon F:\Run\Utilties\System\cmder\icons\cmder.ico /Title Cmder /LoadCfgFile F:\Run\Utilties\System\cmder\config\ConEmu.xml -Single -run "{run} ping"

The new task run:
cmd /k "%ConEmuDir%\..\init_run.bat" -new_console:d:%USERPROFILE%

The batch file init_run.bat:
just make copy init.bat to init_run.bat and add this lines to the end of copied file:

@if [%1]==[] goto end
@echo starting %1
@call %1
:end

Cool, Now that you have a task you can:

Cmder /task [task_name]

image
My Cmder - Version v1.2 - i think

Time to upgrade. Also you may want to put your script in '%cmder_root%\config` and call it from there.

@goodandrewsoft Make sure you follow the instructions in the readme.md file before upgrading. To ensure you don't lose any config.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isnullxbh picture isnullxbh  路  3Comments

justinmchase picture justinmchase  路  3Comments

danwellman picture danwellman  路  3Comments

Joe1992w picture Joe1992w  路  3Comments

zsedcbm picture zsedcbm  路  3Comments