I have a routine which outputs to a HTML table, we have built into our routines, a button where the user can download the data to a .csv file for inputting into Access. The file is being created on the server, and I&#039;d like to delete it at the end of the routine, can anyone tell me why it won&#039;t delete... it does delete the file if I hard code it like so...<BR>"c:inetpubwwwrootny_inquirycdfebkauditlo g1412.csv"<BR>Can anyone shed some light here.....thanks much.<BR><BR><BR>here&#039;s the code<BR>Public Function rmfile( xVar )<BR>Set Sys = Server.CreateObject("Scripting.FileSystemObject" )<BR><BR>If Sys.FileExists( xVar ) Then<BR> Response.Write "***File Exists***"<BR> Sys.DeleteFile xVar <BR> msg = "GREAT NEWS!: File deleted." <BR>Else<BR> msg = "FILE NOT FOUND!"<BR>End if<BR>