Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 06-25-2006, 07:30 AM   #1
Beta Member
 
Join Date: Jun 2006
Posts: 1
Default Is there a command to find and access in all files in one folder

Hello,
i have a problem, maybe you can help me.

I am working with ASP.
My gain is to access in all Excel-files who are in one folder. Is there an command in ASP who says i want to see access in all files which are in that folder.

Best regards,
Joel
__________________

gabri_1981 is offline   Reply With Quote
Old 06-25-2006, 07:43 AM   #2
BSOD
 
PHP Guru's Avatar
 
Join Date: Jun 2006
Posts: 13
Send a message via MSN to PHP Guru
Default Re: Is there a command to find and access in all files in one folder

Im having a look as im not too good at asp, but so far i cant find anything, sorry.
__________________

PHP Guru is offline   Reply With Quote
Old 06-28-2006, 12:53 PM   #3
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,001
Default Re: Is there a command to find and access in all files in one folder

This should Help.
Code:
<%
'*****************************************************
'* Code written by Alexander Haneng (C) 1998-2001    *
'* FREE download from http://www.haneng.com/         *
'*****************************************************
%>

<HTML><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#000000" VLINK="#000000">

<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 width = 100%>
<TR BGCOLOR="#000000"><TD><FONT COLOR="#FFFFFF"><B>Filename:</B></FONT></TD><TD><FONT COLOR="#FFFFFF"><B>Size:</B></FONT></TD><TD><FONT COLOR="#FFFFFF"><B>File type:</B></FONT></TD><TD><FONT COLOR="#FFFFFF"><B>Date created:</B></FONT></TD>
<%
' Create an instance of the FileSystemObject
Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject")
' Create Folder Object
Set MyFolder=MyFileObject.GetFolder(Server.MapPath("./"))
'Loop trough the files in the folder
FOR EACH thing in MyFolder.Files
%>
<TR BGCOLOR="#F7F7E7"><TD><A HREF="/<%=thing.Name%>"><%=thing.Name%></A></TD><TD ALIGN=RIGHT><%=thing.Size%>bytes</TD><TD><%=thing.Type%></TD><TD><%=thing.DateCreated%></TD> 
<%
NEXT
%>
</TABLE>


</BODY></HTML>
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 12:44 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0