<%
Private Sub MkFile(byVal pathname)
Dim objFSO, boolErr, strErrDesc
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
if objFSO.FileExists(pathname) then
err.raise 5106, "MkFile Statement", "File [" & pathname & "] " & _
"Already Exists. Use the Kill statement to delete files."
else
On Error Resume Next
objFSO.CreateTextFile pathname, 2, True
if Err Then
boolErr = True
strErrDesc = Err.Description
end if
On Error GoTo 0
if boolErr then Err.Raise 5106, "MkFile Statement", strErrDesc
end if
Set objFSO = Nothing
End Sub
%>