Current location: Hot Scripts Forums » Programming Languages » ASP » Dynamic links from folder


Dynamic links from folder

Reply
  #1 (permalink)  
Old 11-05-03, 06:37 AM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Dynamic links from folder

Hey all, I was wondering if anyone has ever made this happen?

I'm trying to generate a list of links based on the contents of a folder, so when you add files to the folder, they will appear as links.

The problem is that the files are on a different server than that of the web server. The remote drive is mapped to w:\. The code I have so far is:

Code:
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("w:")
Response.Write("The drive letter is: " & d.driveletter)
Response.Write("<HR>")
if d.isReady then
	Response.Write("The drive is ready")
else
	Response.Write("The drive is not ready")
end if
set d=nothing
set fs=nothing
The output I get is "W", which would tell me that it can see the drive.
The next line I get "The drive is not ready" from the isReady call. The drive can be accessed so it is up and running, the only other thing I can think of would be that accessing it from the server is not allowed.

Would anyone have any idea of what my problem might be, or if this is not even allowed due to a security problem. If it can't be done with asp, what other language could I use.
Reply With Quote
  #2 (permalink)  
Old 11-21-03, 12:39 PM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Noticed this thread while looking for an answer to another question.

Update:
Turns out that it was not possible due to security reasons. You cannot access a network drive with asp.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript opens links in new window podman JavaScript 2 08-21-03 01:49 PM
Thousands of dead links Giant Hot Scripts Forum Questions, Suggestions and Feedback 6 08-03-03 10:30 PM
Problem with java links Kingfishsj JavaScript 0 08-01-03 08:09 AM
edit php in Squirrelmail jrcortrightiii PHP 1 07-10-03 02:08 PM
Targeting links using javascript Greg JavaScript 4 06-30-03 04:06 PM


All times are GMT -5. The time now is 03:53 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.