ASP File System Object Conundrum

En curso Publicado Sep 12, 2006 Pagado a la entrega
En curso Pagado a la entrega

I have a function (see below) that creates a temporary file on the server so that it can be called with Server.Execute. Unfortunately I am unable to delete the file immediately after calling [url removed, login to view]

Function displayASP(displayString, displayMode)

Select Case Ucase(displayMode)

Case "RAW"

[url removed, login to view] displayString

Case "HTML"

result = Replace(displayString, "", ">")

result = ""&result&""

[url removed, login to view] result

Case "PARSED"

fullPath = [url removed, login to view]("PATH_TRANSLATED")

fullPath = Left( fullPath, InStrRev(fullPath, "") )

thisGUID = GetGUID

fullPath=fullPath & thisGUID & ".asp"

Set fileObj = [url removed, login to view]("Scripting.FileSystemObject")

set createdFile = [url removed, login to view]( fullPath, TRUE )

[url removed, login to view] displayString

[url removed, login to view]

set CreatedFile = nothing

myURL = thisGUID & ".asp"

[url removed, login to view] (myURL)

set fileObj = nothing

End Select

End Function

ASP

Nº del proyecto: #88624

Sobre el proyecto

1 propuesta Proyecto remoto Activo Sep 12, 2006

Adjudicado a:

lightcresent

Can fix it immediately...

$30 USD en 0 días
(100 comentarios)
7.1