windows - How to make a batch file that detects when a program closes and then restarts the application? -


Is there any way that I can open myself a program when it stops?

I runs this program; And it gets a pop up; This program closes when you press OK. I know that I can start an executable with a batch, but when I close the program, how do I run it on my own?

I am able to start the program with this code:

  @echo off start "" c: \ program files (x86) \ Winstep \ WinstepXtreme.exe "  

But I want to launch this batch file when WinstepXtreme.exe ends.

Update: OK, the suggested code works but is unable to make its active PC unable to do anything, CMD is also the option to stay on the window but I decide that. There are two files in my process list: Nextstart.exe and Workshelf.exe, if there is a code command where you can type, then it is not certain if the "workshelf.exe" doe exists, start workshelf.exe? If not present then "% ProgramFiles (x86)%" "???"

----------> [SOLUTION] & lt; ----------

@echo off

: "Edit Text" Wait / Wait "C: \ Program Files (x86) \ Winstep \ WorkShelf.exe "

Geto Restart

By adding workshelf.exe instead of Winstep, it was made stable, Winstep exe launched a) Next start and b) Workflow, Workflow is required only to restart, but I can add more than one directory to restart when I close.

will be a simple solution

  @echo off: restart start " Winstep Xtreme "/ Wait" C: \ Program Files (x86) \ Winstep \ WinstepXtreme.exe "Geto Restart   

The batch file is now open all the time. The execution of the batch file is paused until it's running. Once the application itself expires, the execution of the batch file continues again with the introduction of Winstep Xtreme .

You expect that this batch file will not only be used to resolve the trial version's limitations Winstep Xtreme .

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -