Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 03-12-2008, 06:14 PM FileSystemObject
Extreme Talker

Posts: 176
Trades: 0
It says permission denied when I try to run it.

http://balloonfightforever.bit-digit...lereadtest.asp

heres the code
Code:
<%
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("tests\")

for each x in fo.files
  Response.write(x.Name & "<br />")
next

set fo=nothing
set fs=nothing
%>
Any idea why it doesn't work?
Skeddles is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-12-2008, 10:28 PM Re: FileSystemObject
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Either you don't have ntfs permission, or the folder doesn't exist in the current working path for IIS and your web site.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 03-13-2008, 05:15 PM Re: FileSystemObject
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
GetFolder needs a physical folder path

set fo=fs.GetFolder(server.mappath("tests"))
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-15-2008, 01:16 AM Re: FileSystemObject
Extreme Talker

Posts: 176
Trades: 0
Quote:
Originally Posted by chrishirst View Post
GetFolder needs a physical folder path

set fo=fs.GetFolder(server.mappath("tests"))
Thank you sooooo much, it worked.

I'm making a video game fansite, and theres a fanart section, and I wanted to display art without using a database.
Skeddles is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to FileSystemObject
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12963 seconds with 12 queries