Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I would like to scan a folder, then create a webpage that has a link to all the files in that directory, then with a text box type in a number and with a search button open the PDF files as a help desk tool.
We create details as PDF on server now. I would like for our people who use VPN to able to pull and open these PDF's on our Intranet site.It take time manually to update these files to web site page every day by adding a new link by hand, I want the web page to be automatically updated by scanning the folder, and removing links to files we've deleted, and adding links to files we've added.

What kind of technology are you running on your webserver, in other words does it support VBScript, PHP, ColdFusion, or what? you would need something of that nature for the page to be created dynamically.
Not sure what this means "then with a text box type in a number and with a search button open the PDF files as a help desk tool.". If you have a link to each of the documents, what is the search box for?
Also, you could see if your web server supports folder browsing. Then instead of a page with all the links you just direct the user to the folder containing the files. The files would then be displayed in a directory view ike in explorer.
One last option is that you could create a "local" script that builds the static HTML page. Just create a schedule to run the script or run it manually and it could create the HTML page for you with all the links.
Michael J

The technology is windows server 2003. all of the files in question are converted out of solidwork to PDF, they are stored in a dir that all has rights to. We have a VB program that gen's ll the info to create, which is then pulled into SW.
We are creating a compnay intranet so our field people can get the info when we need it.
I would like to have a text box or list box that a number like 0001 or 1000 be entered and push a submit button and the PDF images be displayed.
I have all these PDF's linked now, but the powers to be do not like the many steps it take to get to the image.
I hope this will help
Thanks

OK, since the OS is 2003, I will *assume* that you are running IIS for the web server. IIS has native support for ASP pages (using VBScript). So, that would be the direction I would go. However, I'm not sure if you need to set up anything in order to enable ASP.
You could do a quick check to see if it is enabled by copying and pasting the following code into a text file, then save it as something.asp. Then copy to a directory within the "website" and point your browser to that file (relative to the webroot). If you see the tme displayed, ASP is enabled - if you see the same code displayed, you will need to get ASP enabled
<script language="vbscript">
Response.Write Time
</script>Now, assuming ASP is enabled, a few more questions. How many PDF files are we talking about? What is the naming convention? How will the search work? For example if you search for '345' do you only want a PDF with the exact name of '345' or do you want to return partial matches? How partial: i.e. match the beginning, middle, end?
Michael J

I tested the code, and the same code was displayed.
How do I enable ASP?
Next we have about 100 files, but that will grow. Their naming convention is STD-DET-0000 thru STD-DET-0108, there is also a "," an a name list with each detail. so the files record listing would be "STD-DET-0000, Anchor Shoe".
They only want to see the image that is typed in and submitted to be shown.
BE

Take a look at this page on setting up IIS. Pay particular attention to step 5 to ensure that "run Scripts" is enabled on the web server.
http://www.phdcc.com/findinsite/instvirt.htm
Michael J

IIS in working, PHP in installed. I still would like to be able to type in anumber like 0108 in a search box on an intranet form and the PDF file would be displayed.
BE

Very simple example. You would need to expand on it of course (changed <> to []):
[?php
if (isset($_POST['pdfID'])) {
header("Location: ".$_POST['pdfID'].".php");
}else {
?]
[html][head][/head][body]
[form method="post" action="[?=$PHP_SELF?]"]
Enter PDF ID: [input name="pdfID" type="text" maxlength="20" /]
[br][br]
input type="submit" value="Submit" /]
[/form]
[/body][/html]
[?php
}
?]Michael J

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |