Avatar of GegH
GegH
Flag for New Zealand asked on

Intranet document management

Is there a way in which i can get part of my intranet to search particular folders on my network and add hyperlinks to files to a table on an html page, maybe only showing certain filetypes.
If this was done via a database that could be updated even better, that way we could add other data to the database like version number.

I realise this is a huge problem but if i could be pointed in the right direction it would be a great help. All ideas are welcome
Web ApplicationsDocument ManagementMicrosoft Access

Avatar of undefined
Last Comment
GegH

8/22/2022 - Mon
-null-

Hi

Is there a particular language you will be using, or can a suitable one be picked for this?  This can certainly be automated, with a background worker that routinely updates the information into a database table.

-null-
GegH

ASKER
Any language. I have use ASP Javascript for the rest of the site to allow access to MS Access databases. But this is at the very beginning, the existing site was done as just a file to file linking site, documents on the network, i am transfering them to use the server IIS technology and try to get a bit more organised.
-null-

What languages are you comfortable with?

Also, depending on the size of the directory structure, it might be quick enough running on the fly.  How big is it?

-null-
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
GegH

ASKER
I'm learning really, so any language that works best. I have spent my time previosly just doing basic html.
The directory structure is approx 250 directories.
GegH

ASKER
Help
-null-

Hi

This example shows you how to use ASP to show a directory structure.  It would be a good starting point and will hopfully illustrate how fast it is.

http://www.brainjar.com/asp/dirlist/


-null-
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
GegH

ASKER
Thankyou for this, i will try it at the weekend and get back to you on monday
GegH

ASKER
Sorry for this, i do appreciate the help.

What am i missing?
<%@ LANGUAGE="VBScript" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<% '***************************************************************************
   '* ASP Directory Listing                                                   *
   '*                                                                         *
   '* Do not remove this notice.                                              *
   '*                                                                         *
   '* Copyright 1999, 2000 by Mike Hall.                                      *
   '* Please see http://www.brainjar.com for documentation and terms of use.  *
   '***************************************************************************
%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ASP Directory Listing Demo</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/common/default.css" />
</head>
<body>
 
<div id="demoBox">
 
<h3>ASP Directory Listing Demo</h3>
 
<p>Three separate directories from the web server root are displayed below
("asp", "dhtml" and "js"), showing all subdirectories and files. Additionally,
each file is displayed as a link.</p>
 
</div>
 
<!-- List these three folders. -->
<ul>
<% ListFolderContents(Server.MapPath("/asp")) %>
<% ListFolderContents(Server.MapPath("/dhtml")) %>
<% ListFolderContents(Server.MapPath("/js")) %>
</ul>
 
</body>
</html>
 
<% sub ListFolderContents(path)
 
     dim fs, folder, file, item, url
 
     set fs = CreateObject("Scripting.FileSystemObject")
     set folder = fs.GetFolder("C/Databases")
 
    'Display the target folder and info.
 
     Response.Write("<li><b>" & folder.Name & "</b> - " _
       & folder.Files.Count & " files, ")
     if folder.SubFolders.Count > 0 then
       Response.Write(folder.SubFolders.Count & " directories, ")
     end if
     Response.Write(Round(folder.Size / 1024) & " KB total." _
       & vbCrLf)
 
     Response.Write("<ul>" & vbCrLf)
 
     'Display a list of sub folders.
 
     for each item in folder.SubFolders
       ListFolderContents(item.Path)
     next
 
     'Display a list of files.
 
     for each item in folder.Files
       url = MapURL(item.path)
       Response.Write("<li><a href=""" & url & """>" & item.Name & "</a> - " _
         & item.Size & " bytes, " _
         & "last modified on " & item.DateLastModified & "." _
         & "</li>" & vbCrLf)
     next
 
     Response.Write("</ul>" & vbCrLf)
 
     Response.Write("</li>" & vbCrLf)
 
   end sub
 
   function MapURL(path)
 
     dim rootPath, url
 
     'Convert a physical file path to a URL for hypertext links.
 
     rootPath = Server.MapPath("/")
     url = Right(path, Len(path) - Len(rootPath))
     MapURL = Replace(url, "\", "/")
 
   end function %>

Open in new window

-null-

I don't know!

What's happening when you run it?

are the folders you want to list in the document root of the site?

-null-
Your help has saved me hundreds of hours of internet surfing.
fblack61
GegH

ASKER
It comes up with a notice that says The page cannot be displayed
The page cannot be displayed 
There is a problem with the page you are trying to reach and it cannot be displayed. 
 
--------------------------------------------------------------------------------
 
Please try the following:
 
Click the Refresh button, or try again later.
 
Open the 10.0.0.105 home page, and then look for links to the information you want. 
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
 
--------------------------------------------------------------------------------
 
Technical Information (for support personnel)
 
Error Type:
Microsoft VBScript runtime (0x800A004C)
Path not found
/hmyintranet/DirList.asp, line 45
 
 
Browser Type:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) 
 
Page:
GET /hmyintranet/DirList.asp 
 
Time:
06 March 2009, 16:32:02 
 
 
More information:
Microsoft Support 
 

Open in new window

Amila Hendahewa

i think you could do this using sharepoint.
in sharepoint you can define network folders as external content sources and crawl them for searching, so that hyperlinks will be shown in search results.
also you can customise the search results in whatever the way you like.
GegH

ASKER
I've looked at sharepoint. The problem i have is 2 fold, a halt to spending and the company style.
We have sbs which has sharepoint sevices 2.0 but everything i've read tells me not to try to customise it on it's own (in fact i tried this and essentially screwed it up. Sharepoint server which sits on it costs, this is the part where you can customise the defaults, and it's low down the priority list as far as expenditure is concerned.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Amila Hendahewa

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
GegH

ASKER
Sorry for the delay in getting back to you, bit of a disaster at work.
Will sharepoint services 3 enable me to customise the default pages?
SOLUTION
Amila Hendahewa

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Amila Hendahewa

any result on this?
GegH

ASKER
I believe it could be useful, but doesn't work great with CAD and Xrefs.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy