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
New: KiCad (Mar 25, 2025), Platform 30.0.2 (Mar 27, 2025)
1,100+ portable packages, 1.1 billion downloads
Ad Free! Please donate today
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
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