Getfolder Mothod

I'm just trying to get a script going to view all files & folders but when it comes to process

[VBS]Set fileobject = fs.GetFolder("C:inetpubsite")[/VBS]

Nothing happens and I have to restart IIS (WinXP) to view any other page. Anyone know what is going on?

View Replies


ADVERTISEMENT

Fso.GetFolder()

I'm developing an ASP page on Win XP (IIS 5.1) which uses the the GetFolder
method as below:-

Set f = fso.GetFolder(fsDir)

But everytime this line executes (when stepping in debugging mode), it stays
there forever. Restarting the browser/IIS webserver does not terminate the
process. Subsequent access to the webserver (other working page!) does not
get any reply/response from the webserver. Have to restart the PC to get the
webserver working again.Other object returning FSO method such as GetFile also produce this kind of behavior. But ordinary methods such as FolderExists works OK. Haven't tried
the OpenTextFile method which returns a TextStream object cos I'm tired of
restarting my PC.

View Replies View Related

GetFolder

I have a GetFolder command that i am using to list the contents of folder on the machine running my website.

Set objFolder = objFSO.GetFolder(session("data_directory") & "" & session("folder_name") & "" & strAbbr & "").

This works when the data_directory is on the webserver. When I try to set this to a network share I get a true response to

if objFSO.FolderExists(session("data_directory") & "" & session("folder_name") & "" & strAbbr & "") then

but the GetFolder does not provide a list of files in this directory. I have web shared the folder, manually given the remote computer iusr_mcn rights to the folder.

View Replies View Related

ASP Virtual Directory GetFolder Error

We have a webpage browsing folders within the wwwroot. We need to access a remote shared directory the same way.

We created a virtual directory in IIS with an alias pointing on this remote directory. The virtual directory is accessible when we type it in the address bar of IE but when we try accessing it with a Scripting.FileSystemObject. Code:

View Replies View Related

FSO "getfolder"

I bought a ASP portal script, aspportal.net, But It gives a problem from a line,
Set folderpath = fso.getfolder(thepath)
The error is,
Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'getfolder'
/aspportal/themes/themes.asp, line 37

What could be the problem?

View Replies View Related







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