Mhtml
09-04-2002, 10:25 AM
Hi, I'm having some real problems with some of my code.
I've made a script that deletes a specified file but it whent wrong and onwly paritally deleted the file and now the file that it was meant to delete can't be deleted or changed in anyway, not through dos or windows.
here's the scripts but if you are going to test it be warned it may not work the way it is meant to..
<% Dim GetFile
GetThis = Server.MapPath("messages.htm")
set fs = CreateObject("Scripting.FileSystemObject")
set file = fs.GetFile(GetThis)
file.delete
file.close
Response.Write("File Deleted")%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
</body>
</html>
I've made a script that deletes a specified file but it whent wrong and onwly paritally deleted the file and now the file that it was meant to delete can't be deleted or changed in anyway, not through dos or windows.
here's the scripts but if you are going to test it be warned it may not work the way it is meant to..
<% Dim GetFile
GetThis = Server.MapPath("messages.htm")
set fs = CreateObject("Scripting.FileSystemObject")
set file = fs.GetFile(GetThis)
file.delete
file.close
Response.Write("File Deleted")%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
</body>
</html>