lapcia Posted October 4, 2006 Share Posted October 4, 2006 Hi everyone I have one simple for you but still hard question for me: I made an exe which runs certain program, but i have difficulties to delete temporary files which are created when program is exited. Program: Run ("Laikinas.exe") if ProcessExists ("Laikinas.exe") then MsgBox(0,"DEMESIO", "Programa veikia") Elseif ProcessExists ("Laikinas.exe") then MsgBox(0,"DEMESIO", " ISVALYTAS") EndIf I've tried to make cycle which checks if the program is running and if it's not executes file deleting. Thank you in advance for your time. Link to comment Share on other sites More sharing options...
jvanegmond Posted October 4, 2006 Share Posted October 4, 2006 (edited) If you are not doing anything while the program is active. Perform a RunWait command in stead of a normal Run. Otherwise, do this: $PID = Run();fill in parameters! While ProcessExists($PID) ;do stuff Wend ; process stopped running. DirRemove() can delete a directory. So find out where the temporary files are 'hiding' and delete the directory. Edited October 4, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now