Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple file directory issue

Status
Not open for further replies.

famtek

Instructor
Mar 27, 2007
67
US
I am trying to use an ASP page to read a physical directory on my PC. I am the Admin on a Windows XP Home with default security setting. My code is

<%
' Get a handle on our PHYSICAL folder
Dim fs,folder,strPath
strPath="c:\pict"
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set folder = fs.GetFolder(strPath)
%>

I get the following error:

Microsoft VBScript runtime error '800a004c'
Path not found

The path does exist and has files in it. What am I missing? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top