Solved How to run a batch script when closing another programm

January 17, 2019 at 21:48:30
Specs: Windows 10
Hallo community
I want to execute a batch file that copies some files from one place to another. The execution should start right after closing a defined program (not a windows standard application). I could not find a appropriate trigger in the windows task planner.
I am running windows 10

message edited by chris20jagd


See More: How to run a batch script when closing another programm

Report •

#1
January 19, 2019 at 14:27:30
✔ Best Answer
https://superuser.com/questions/420...
points out:

@echo off
START /WAIT "path-to-app-that-should-close"
::
::continue batch script, after the app closes
::
exit/b

i5-6600K[delid]@4.7GHz/4.4GHz cahe/@1.395v LLC=6 | 2x4GB Crucial-DDR4-2400CL17@14-15-15-28 1T 3000MHz@1.4v | MSI Armor RX 570 4GB@1410Mhz core@1.2v/1920MHz


Report •

#2
January 21, 2019 at 22:38:40
Thank you. hidde63
It is not exactly what I was loocking for but I think there is no better way to do it.

Report •

#3
January 22, 2019 at 00:43:15
well you can bind two executables .exe/.com/.bat together, but im not sure how legal that is.
you can google how to do it tho ;)

binding 2 together will execute the 2nd one, once the first one has closed.

i5-6600K[delid]@4.7GHz/4.4GHz cache/@1.395v LLC=6 | 2x4GB Crucial-DDR4-2400CL17@14-15-15-28 1T 3000MHz@1.4v | MSI Armor RX 570 4GB@1410Mhz core@1.2v/1920MHz

message edited by hidde663


Report •
Related Solutions


Ask Question