Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Windows' Command Prompt to encode an "Anime video" -- but it takes about 10 hours to finish!

I can't leave the laptop for 10 hours, because I use it in my work.

I want a method to close the CMD and continue it again to avoid restarting the batch file from the beginning.

Is there a method like that?

share|improve this question

closed as unclear what you're asking by Raystafarian, nerdwaller, Breakthrough, gronostaj, Excellll Aug 12 '13 at 13:21

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Really you are asking about resuming a process, not realling continuing it once the CMD is closed. In any case, if you want help, you should post the command you use to start the process - since what you are asking is more a feature of your program than CMD's status. Please update your post with that and do not add a comment. – nerdwaller Aug 1 '13 at 18:47
No, the "encoder x264" use CMD and I wanna CMD To resume because x264 use CMD Not a GUI – user242616 Aug 1 '13 at 18:50
@user242616: That would still be a feature of the program. Which program are you using? (And what do you mean by “left the laptop for 10 hours”? You can’t leave it on, or you can’t leave the program using up resources?) – Ryan O'Hara Aug 1 '13 at 18:52
It is x264 I Put this encoder and the video in one folder and create a .bat file to encode it (I can't leave The Laptop on -___-) – user242616 Aug 1 '13 at 18:54
Rather than stop the command or run the laptop off can you leave the command running then hibernate the machine? That way it will continue after you resume the machine... – Mokubai Aug 5 '13 at 21:11

One solution would be to create a virtual machine with MS Virtual PC or Oracle's VirtualBox. Install the encoding program on the virtual machine. Then you could run the program in the virtual machine and suspend and resume the entire virtual machine as necessary. This would accomplish what you are looking for.

share|improve this answer
Great idea, though it assumes one is allowed to install software on a work laptop. (Which generally should not be the case). – Hennes Aug 2 '13 at 15:15

Your actual question seems to be: "Can I resume a program -In this case started from cmd.exe- after I shut down windows".

The answer is generally: No.

What you can do is:

  1. Run it on another computer. E.g. a non-work related one (keep work and private stuff seperarte!)
  2. Leave the work laptop on during an evening and night.
  3. Find a faster way to do this. In your command I notice a --threads=15. Is that really the fastest option? Do you have 15+ CPU cores? (Or 8 cores with HT?)

If you need to convert this anime for work then ask your admin for an account on a server.

share|improve this answer
I wish watching anime was part of my job... – Keltari Aug 1 '13 at 20:09

Not the answer you're looking for? Browse other questions tagged .