By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,504 Members | 1,212 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,504 IT Pros & Developers. It's quick & easy.

Getfolder on the network

P: n/a
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

May 25 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
May 25 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.