Hi,
I have managed to write to a local file using the following javascript:
But I would like to make the path relative. I have tried changing the path to "../test.txt" but this didn't work.
I then investigated using the MapPath method, but this only appears to work on a server "Server.MapPath".
Has anyone got any suggestions how I can do this?
Thanks
Andy
I have managed to write to a local file using the following javascript:
Code:
fso = new ActiveXObject("Scripting.FileSystemObject");
s = fso.OpenTextFile("C:\\test.txt", 2, 1, -2);
s.writeline("This is a test");
s.Close();
But I would like to make the path relative. I have tried changing the path to "../test.txt" but this didn't work.
I then investigated using the MapPath method, but this only appears to work on a server "Server.MapPath".
Has anyone got any suggestions how I can do this?
Thanks
Andy