Well, I'm looking for the same thing. But some pointers. Run in a cmd window using cscript and you will get a persistent execution. You can code in echo markers to locate where you are when bad things happen. Or download and enable the debugger (search Microsoft).
What I need is to delete an entire tree of files and folders, and I can't seem to get the regular expressions to work in the way I think they should (starting with the same script you have, BTW). I see a lot of questions about this. Surely someone (please!) has faced this and solved it. Or is there a "force" mechanism to force deleting a folder even if it has content?
Best regards
Fred
|