For Programmers: Free Programming Magazines  


Home > Archive > ASP > May 2006 > Getfolder on the network









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Getfolder on the network
damezumari

2006-05-25, 6:56 pm

I use windows 2000, iis 5.

When I run the following program in IE6 I get the screen below.

--- Program:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFolder("k:\test\")
Response.Write("The folder was last modified on: ")
Response.Write(f.DateLastModified)
set f=nothing
set fs=nothing
%>
</body>
</html>

--- Screen:

The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot
be displayed.

--------------------------------------------------------------------------------

Please try the following:

Click the Refresh button, or try again later.

Open the localhost home page, and then look for links to the
information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Error Type:
Microsoft VBScript runtime (0x800A004C)
Path not found
/explorerview/test2.asp, line 7


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322;
..NET CLR 2.0.50727)

Page:
GET /explorerview/test2.asp

Time:
Thursday, May 25, 2006, 12:07:54 PM


More information:
Microsoft Support

---

However, when I change the folder to "C:\test\" everythng works fine.
In general the program seems to work for any folder on my local
machine, but for no folder on the network. I have full access to drive
K.

Regards,

Jan Nordgreen

Bob Barrows [MVP]

2006-05-25, 6:56 pm

damezumari wrote:
> I use windows 2000, iis 5.
>
> When I run the following program in IE6 I get the screen below.
>
> --- Program:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html>
> <body>
> <%
> dim fs,f
> set fs=Server.CreateObject("Scripting.FileSystemObject")
> set f=fs.GetFolder("k:\test\")
> However, when I change the folder to "C:\test\" everythng works fine.
> In general the program seems to work for any folder on my local
> machine, but for no folder on the network. I have full access to drive
> K.
>

See : http://www.aspfaq.com/show.asp?id=2168

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com