|
Shudder. What do you mean, a more 'advanced code'? JavaScript might be a little clunky but there is nothing advanced about deleting a file.
Booooze probably has the right answer if this JavaScript code is trying to run inside a browser. But if it was trying to delete a file at the server side, then it's not malicious and should have worked; runat="Server" in the SCRIPT tag would avoid having the code sent to the client, which should refuse to instantiate the FileSystemObject for security reasons.
As for moving to ASP.NET just for this functionality - do you have any idea what you've added to the footprint of your server-side script for the sake of an easy file delete?!
Ah well, I suppose you get other advantages that way too. Ho hum.
(Trying not to rant...)
__________________
"I'm not a genius. Why do I have to suffer?"
|