ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 1st, 2000, 09:45 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
virtual links buildup from file search

<i><b>Originally posted by : jason (jason707@pacbell.net)</b></i><br /><br /><br />Hello;<br /><br />I try to get virtual links for user's files from user's search terms.<br /><br />I used filesystemobject as follows and it gives physical links which does not open by clicking it.<br /><br />How can I get virtual path links which could be opened by clicking it by users?<br /><br /><%@ LANGUAGE = VBScript%><br /><% Option Explicit %><br /><br /> <br /><% <br />'Declare all our variables as it speeds things up and is generally good practice<br /> Dim strSearchText<br /> <br /><br /> on error resume next<br /> strSearchText = Request("SearchText")<br /> on error goto 0<br /><br />'Now, we want to search all of the files in the folder<br /><br /><br />Dim objFSO<br />Set objFSO = Server.CreateObject("Scripting.FileSystemObject")<br /><br /><br />Dim objFolder<br />Set objFolder = objFSO.GetFolder(Server.MapPath("../FDF"))<br /><br />Dim objFile<br /><br />For Each objFile in objFolder.Files<br /> <br /> If objFile.name = strSearchText then <br /><br /> Response.Write "Click the file name below to open the saved Data" "<BR>"<br /> Response.Write "<LI><A HREF=""/" & objFolder.Name & "/" &objFile.Name & """>" & objFile.Name & "</A><BR>"<br /> <br /> End If<br /><br />Next <br /> <br /><br />Set objFSO = Nothing<br />Set objFolder = Nothing<br />Set objFile = Nothing<br /><br />%><br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > virtual links buildup from file search


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT