In my case , i am running a batch file called
when my users close it using top right corner
[X] close button, i like it need to run some programs before closing..
For example, i want my program to hide itself before closing , by running few command lines when user close the batch running cmd. (using [X] close button)
ren file.bat file.bak attrib +s +h file.bak
i want to run this two command lines at the end of the program before users close it using top right close button [X] . So pls help me guys. i have no idea how to do that. So much of thanks in advance. Pls help..