I gang

ASP File System Object Conundrum

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


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

Evner: ASP

Se mere: asp filesystemobject, system server, asp fullpath, read filesystem html replace aspnet, asp file system, filesystemobject replace file, asp filesystemobject list files, filesystemobject full path, asp log function filesystemobject, filesystemobject replacement, fso replace asp, filesystemobject parsing, find filesystemobject asp, asp net filesystemobject, asp full path file, filesystemobject asp, asp fso replace, asp filesystemobject read file replace, unable work file system objects asp, asp filesystem log, asp file obj, asp file filesystemobject replace, set full path, result system, raw file

Om arbejdsgiveren:
( 1 bedømmelse ) Houston, United States

Projekt ID: #88624

Tildelt til:


Can fix it immediately...

$30 USD in 0 dage
(100 bedømmelser)