You are here

Run exe when portable program closes

3 posts / 0 new
Last post
rnby
Offline
Last seen: 15 years 7 months ago
Joined: 2007-01-04 07:40
Run exe when portable program closes

I saw by many portable apps that
they run some code/exe

then the programs starts.

after you close the program again a program or batch file runs that removes certain files.

how would I do that?

RNBY

emperror
Offline
Last seen: 15 years 3 months ago
Joined: 2005-12-30 14:39
e.g. in AutoIt:

in AutoIt this is very simple to do:


RunWait("prog.exe")
Run("afterProg.exe")

for more info see AutoIt online docs: http://www.autoitscript.com/autoit3/docs/functions/RunWait.htm

vamp1r
Offline
Last seen: 14 years 7 months ago
Joined: 2006-10-11 15:06
In a batch file... xcopy

In a batch file...

xcopy from_here to_there
regedit that

start /w "something.exe"
REM tells the computer to wait for "something.exe" to finish
REM before executing the rest of the code

regedit delete_that
rmdir delete_this_directory

Topic locked