| Author: ABitSmart 04 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
The code you have shared has no delete functionality at all ??
Please post your question and details in English.
Kind regards, ABitSmart DNS Web-master, DNS MVM My blog Thoughts.exe
|
| Author: Mikkel Bachmann 06 Nov 2009 | Member Level: Bronze | Rating:  Points: 2 |
the delete functionality in the code is this: <script language="JavaScript"> function remove(filename) { var myObject; myObject = new ActiveXObjec("Scripting.FileSystemObject"); myAc.GetFile("../../trash/" + filename, true); myAc.Delete(); } </script>
<input type="button" value="slet" id="slet" onclick="remove('file')" />
the # sign is insted of "
the error massage: is in Danish. English: There was a Microsoft JScript runtime error: Automation server can not create object (acording to Google)
C# is my languages, OOP is my religion, byt i am my good! CV - Mikkel Bachmann
|