Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have created a shortcut which launches cmd.exe with a specific working folder and runs a program using the /k switch

C:\Windows\System32\cmd.exe /k eac3to.exe e:

This works as expected however the next step with this tool is to add an additional parameter based on what is output from the original call, so:

eac3to.exe e: 1)

or

eac3to.exe e: 2)

So what I want to do is access eac3to.exe e: again from the cmd history and then add the 1) or 2) .

But, the command history doesn't ever save the /k command for access using the up/down arrows.

If I enter subsequent commands manually then they are accessible using the up/down arrows but the original command passed isn't.

Is there any switch which forces cmd.exe to remember the /k command?

share|improve this question
    
I think the command isn't showing up in the history because the /k switch "remains". It never terminates so it looks as if it's still running. Thus never added to the history. I may be off, but that makes sense to me. –  Qwilson Feb 19 at 14:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.