in reply to Deleting a running script

I'm just grasping as straws here (if I were using windows myself, I guess I'd be gasping at flaws...) -- anyway, I wonder if you can figure a way to have your script manipulate the windows "task scheduler" so that it will execute some windowless process to delete your script file at, say, a minute or two after the current time when the script is about to exit. (Needless/heedless to say, "cron" on *nix would make this sort of approach very easy.) Good luck.