in reply to Re: Re: Deleting a running script
in thread Deleting a running script
Bagarre,
waswas-fng gave you the answer. You need to have the last few lines of your program create a batch file. The batch file looks something like:
waswas-fng gave you the answer. You need to have the last few lines of your program create a batch file. The batch file looks something like:
The final line of code would be:del script.exe del batch.bat
Why is it important for the executable to delete itself anyway?exec ("batch.bat");
In Section
Seekers of Perl Wisdom