View Single Post
Old Sep 25th, 2006, 10:28 AM   #1
Master
Programmer
 
Master's Avatar
 
Join Date: Sep 2005
Location: GA
Posts: 99
Rep Power: 4 Master is on a distinguished road
How to delete file in JavaScript

I did this but it does not work

function DeleteFile(filename)
{
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    fso.DeleteFile(filename, true);
}

Last edited by big_k105; Sep 25th, 2006 at 10:40 AM. Reason: Added Code Tag
Master is offline   Reply With Quote