FOLDER CONTENTS SCRIPT....
folderPath = server.MapPath("/Dragon/")
set oFSO = Server.CreateObject("Scripting.FileSystemObject")
set oFiles = oFSO.GetFolder(folderPath).Files
for each f in oFiles
Response.Write f.name & "<br>"
next
set oFiles = nothing
set oFSO = nothing
-----Original Message-----
From: Chris Janz [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 1:16 PM
To: ActiveServerPages
Subject: Scripting.FileSystemObject question
question,
how do i use Scripting.FileSystemObject to create a file that doesn't
already exist?
also, does anyone know of an easy way to list the contents of a folder using
the FileSystemObject? (quick and dirty works fine - it doesn't need to be
recursive or special in any way - let's say i need to list the .txt files of
c:\somefolder\someotherfolder\here\
thanks,
chris
---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]