views:

12

answers:

1

I know that Windows Sidebar Gadget API provides functionality beyond normal Javascript capabilities. Does it manipulate files? How?

I didn't find how to do it in the API Reference

+1  A: 

I'm not aware of a method of deleting files using the Gadget API, but you can use FileSystemObject's DeleteFile method:

var oFSO = new ActiveXObject("Scripting.FileSystemObject");
oFSO.DeleteFile(System.Gadget.path+"\\myfile.txt");
Andy E