Whichfile = server.mappath ("Abandonship.txt") 'Get file name set fso = createObject ("scripting.filesystemObject")' Define FSO object set f1 = fso.createtextfile (Whichfile, true) f1.write ("this is a Test.my name is abandonship. ") F1.close set f2 = fso.dfile (Whichfile) F2.move" f: / asp / testdel / "set f3 = fso.getfile (" f: / asp / testdel / abandonship. " TXT ") f3.delete