472,145 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

pdf files are not getting open help me please

I am new bie for ASP

I retrieved files name from a folder by using FSO

problem is if i click that name link files are getting open

Expand|Select|Wrap|Line Numbers
  1. <% 
  2.     folder = "C:\Documents and Settings\Administrator\Desktop\hermitage\pdf" 
  4.     set fso = CreateObject("Scripting.fileSystemObject") 
  5.     set fold = fso.getFolder(folder) 
  6.     for each file in fold.files 
  7.         response.write"<a href='"&file.name &"'> " & file.name & "</a>" &"<br>" 
  8.     next 
  9.     set fold = nothing: set fso = nothing 
  10. %>
help me to open that files

thanks in advance
Feb 21 '07 #1
1 1170
692 Expert 512MB

To display the Pdf files I think you have to give the full path.
So try this <a href="http://localhost/" & '"&file.name &"'>

Feb 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by reddy | last post: by
9 posts views Thread by John J. Hughes II | last post: by
20 posts views Thread by Mark | last post: by
2 posts views Thread by Jofio | last post: by
7 posts views Thread by Tyrone Showers | last post: by
5 posts views Thread by =?Utf-8?B?bG9rZWU=?= | last post: by
reply views Thread by leo001 | last post: by

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.