Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript - Deleting files

Status
Not open for further replies.

bizproducer

Programmer
Jan 20, 2005
19
US
Does anyone know how to create a javascript that will delete files? I found this one on the web but it doesn't work.

myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
file = myActiveXObject.GetFile("C:\\Temp\\All Reports.htm");
file.Delete();

Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top