473,386 Members | 1,644 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Help - ASP & public folder access

Hello All,

I'm trying to read the contents of a local folder and output the file names
as text (code below.) However, my browser freezes because of line: " set
folder = fso.GetFolder("c:\") " The code below should work however I'd be
enormously grateful if someone could either provide alternative code or
suggest a resolution to the freezing. James
<%
dim fso
set fso = Server.CreateObject( "Scripting.FileSystemObject")

dim folder
set folder = fso.GetFolder("c:\")

Response.Write( "<B>Directory: " & folder.Path & "</B><BR><BR>")
dim file
for each file in folder.Files
Response.Write( file.Name & "<BR>")
next
%>
Mar 30 '06 #1
2 1359

Hi James,

If you are using .NET (It's ASP.NET group.), you should look at classes such
as DirectoryInfo and FileInfo in System.IO namespace.

Or for ASP, you should post your question in

http://msdn.microsoft.com/newsgroups...&lang=en&cr=US

or

http://msdn.microsoft.com/newsgroups...&lang=en&cr=US

HTH

Elton Wang
"James" wrote:
Hello All,

I'm trying to read the contents of a local folder and output the file names
as text (code below.) However, my browser freezes because of line: " set
folder = fso.GetFolder("c:\") " The code below should work however I'd be
enormously grateful if someone could either provide alternative code or
suggest a resolution to the freezing. James
<%
dim fso
set fso = Server.CreateObject( "Scripting.FileSystemObject")

dim folder
set folder = fso.GetFolder("c:\")

Response.Write( "<B>Directory: " & folder.Path & "</B><BR><BR>")
dim file
for each file in folder.Files
Response.Write( file.Name & "<BR>")
next
%>

Mar 30 '06 #2
James as Elton adviced move it to ASP.NET
and make your life easier.
Patrick
"James" <ja*********@ntlworld.com> wrote in message
news:8N******************@newsfe2-win.ntli.net...
Hello All,

I'm trying to read the contents of a local folder and output the file
names as text (code below.) However, my browser freezes because of line: "
set folder = fso.GetFolder("c:\") " The code below should work however I'd
be enormously grateful if someone could either provide alternative code or
suggest a resolution to the freezing. James
<%
dim fso
set fso = Server.CreateObject( "Scripting.FileSystemObject")

dim folder
set folder = fso.GetFolder("c:\")

Response.Write( "<B>Directory: " & folder.Path & "</B><BR><BR>")
dim file
for each file in folder.Files
Response.Write( file.Name & "<BR>")
next
%>

Mar 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: dixie | last post by:
Help, I'm really out of my depth here (not unusual I hear you say :-). I have just installed HTML Help in an application. I told it in the Project Properties the path to the help file. I then...
0
by: john bailo | last post by:
I am attempting to create a c# program to iterate through the messages in an Outlook/Exchange public folder and extract the headers. My apologies to the VB/VBA groups, but you seem to have more...
11
by: ricolee99 | last post by:
Hi everyone, I'm trying to invoke my .exe application from a remote server. Here is the code: ManagementClass processClass = new ManagementClass ("\\\\" +"RemoteServerName" +...
0
by: Grzegorz Kaczor | last post by:
Hello, I have an ASP.NET application in my website in virtual folder A. This folder contains the application itself. I also have a data virtual directory B which contains data that can be seen...
2
by: Bruce Groen | last post by:
I am having some authentication issues. I download a sample app to test the forms based authentication process of asp.net and it works on one of my servers but not the other one. The one that it...
5
by: Khalique | last post by:
Hi everyone, I Hope that someone will be able to give me a hint to the solution to my problem. I have developed a web service (vb.net) that needs to access the folders / files and copy files to...
1
by: JNariss | last post by:
Hello, I have created a connection to my Access database with Dreamweaver and made a simple form with 4 fields. The code behind this form was/is: <%@LANGUAGE="VBCRIPT" CODEPAGE="1252"%>...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
8
by: paquer | last post by:
Database Users need to have Read/Write etc... permissions to the folder where the Database resides in order to create the lock file. I have read only users. I have set up the Shortcut that links...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.