I am using:
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.CreateTextFile("C:\\xxx\\xxx\\xxx\\xxx\\Microsoft\\Windows Sidebar\\Gadgets\\xxx\\xxx.xxx", true);
s.WriteLine(content);
works perfectly.... but I need to use something like:
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.CreateTextFile(server.mappath("xxx.xxx"), true);
var s.WriteLine(content);

using FSO in my gadget works but can't do relative path...help
sveroa
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.CreateTextFile(System.Gadget.path + "xxx.xxx", true);
var s.WriteLine(content)
James_Z
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.CreateTextFile(System.Gadget.path + "\\xxx.xxx", true);
s.WriteLine(content);
Roshan_wp
good thought!
but it didn't work
lingga
Thanks for the help, the right syntax is:
var s = fso.CreateTextFile(System.Gadget.path + "\\xxx.xxx", true);