Hey, Does anybody know the best way to delete a file on the server from flex. here's what i tried so far with no prevail.
1st: I tried using javascript. <SCRIPT LANGUAGE="JavaScript"> function deleteFile(fileName){ var fso,newName,f1; fso = new ActiveXObject("Scripting.FileSystemObject"); f1 = fso.GetFile("c:\inetpub\MGC\images\2.jpg"); f1.Delete(); } </SCRIPT> Doesn't work....see any problems??? 2nd: I used a POST that accesses this vbscript fuction: Public Sub ManipFiles(path) Dim fso, f1, f2, s Set fso = Server.CreateObject("Scripting.FileSystemObject") Set f2 = fso.GetFile(path & "\2.jpg") f2.Delete End Sub Still no luck TIA.....TIA -JoSh