ObjFSO

Is there a way to omit files listed if using objFSO to query a folder? I
have it set to list every image in a folder and return name, size, date with
the ability to view or delete the images, but some images should not be
deleted. I would like to omit these name from the query objFSO returns.

View Replies


ADVERTISEMENT

Serverfile.ext Does Not Like ObjFSO.FileExists()

When a file is local to the ASP application, I can use the following code to
test if the file exists:

Dim strFileName, blnFileExists, objFSO

strFileName = Server.MapPath( "MyFiles est.doc" )

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
blnFileExists = objFSO.FileExists( strFileName )
Set objFSO = Nothing

But if "MyFiles" resides on another server and I set up a virtual directory
in my ASP app to reference to it (e.g. "MyFiles est.doc" resolves to
server2F$MyFilesest.doc), the code would return False even if the file
exists on the other server.

View Replies View Related

Deleting Files From Server... ObjFso Delete

I'm trying to delete files from the server and its not working. Can any one help please?
It says the file doesn't exist... where as the file exists...

I did a response.write for my delFile to make sure its there but it doesn't see the file... Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved