473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Browsing Files on IIS Server

We have a department who scans a lot of pictures for each project they work
on and then emails them out to about 100 odd users within the company. This
causes lots of problems hence we decided to map thier folder to a webserver
so instead of them emailing out everything they can send out a link to allow
users to view the pictures in thier browsers.

What they effectively do is every time they start work on a new project they
create a sub folder with that particular project number and save the
pictures in there.

the users can see the pictures by using the url like

http://ourserver/xxxxxx

where xxxxxx is the project number.

We have used the file system object to generate a list of files like the one
below. The question is we want to give our users and option of using the
First , Previous, Next and Last links when viewing the files in any folder
so they don't have to keep clicking every single file to view it.

One solution that I could think of was to have a java script pop with the
links but don't know how to code it. Does anyone have any idea how I can
accomplish this. Also thing to keep in mind is that new subfolders are being
created every week.

<%
'Create our filesystem object
Set objFS = Server.CreateObject("Scripting.FileSystemObject")
'Get this folder
FolderPath=Request.ServerVariables("APPL_PHYSICAL_ PATH") & "files"
Set objFolder = objFS.GetFolder(FolderPath)
Set objFiles = objFolder.Files
For Each objFile In objFiles %>
<TR>
<TD><font size="2" face="Verdana"><%=objFile.ParentFolder%></font></TD>
<TD><font size="2" face="Verdana"><% Response.Write("<a href='files\"
+ objFile.Name + "' target = " & "_blank" & ">" + objFile.Name +
"<br>")%></font></TD>
</TR>
<% Next %>

Jul 19 '05 #1
6 2794
If these are all images, you might look into one of the many photo
album scripts floating around. Some will produce thumbnails as well.

Jeff

On Wed, 10 Sep 2003 14:44:12 +0100, "J P Singh" <noemail@asIhatespam>
wrote:
We have a department who scans a lot of pictures for each project they work
on and then emails them out to about 100 odd users within the company. This
causes lots of problems hence we decided to map thier folder to a webserver
so instead of them emailing out everything they can send out a link to allow
users to view the pictures in thier browsers.

What they effectively do is every time they start work on a new project they
create a sub folder with that particular project number and save the
pictures in there.

the users can see the pictures by using the url like

http://ourserver/xxxxxx

where xxxxxx is the project number.

We have used the file system object to generate a list of files like the one
below. The question is we want to give our users and option of using the
First , Previous, Next and Last links when viewing the files in any folder
so they don't have to keep clicking every single file to view it.

One solution that I could think of was to have a java script pop with the
links but don't know how to code it. Does anyone have any idea how I can
accomplish this. Also thing to keep in mind is that new subfolders are being
created every week.

<%
'Create our filesystem object
Set objFS = Server.CreateObject("Scripting.FileSystemObject")
'Get this folder
FolderPath=Request.ServerVariables("APPL_PHYSICAL_ PATH") & "files"
Set objFolder = objFS.GetFolder(FolderPath)
Set objFiles = objFolder.Files
For Each objFile In objFiles %>
<TR>
<TD><font size="2" face="Verdana"><%=objFile.ParentFolder%></font></TD>
<TD><font size="2" face="Verdana"><% Response.Write("<a href='files\"
+ objFile.Name + "' target = " & "_blank" & ">" + objFile.Name +
"<br>")%></font></TD>
</TR>
<% Next %>


Jul 19 '05 #2
You could always place everything within an array then
loop through the array.
Jul 19 '05 #3
Since our database is currently unavailable and I may need
something like this in the future I took some time and
created what I believe you are looking for. If you wish
to drop me an e-mail I will be happy to send you the two
pages I crated to handle this.

- Dale
Jul 19 '05 #4
I just have the same request.
Currently developping a web based file browser.
Here you can see an example:
http://www.sportconsult.be/browser/

the folders and contents are dynamically read with
Server.CreateObject("Scripting.FileSystemObject")
the folder contents is just listed right know, but I am working on creating
thumbs on the fly
It is still in a beta fase, but let me know what you think about.

regards,

bartp
--

==========================================
Hyper A.R.T.
bart plessers
Paul Van Ostaijenlaan 4
3001 Heverlee
BELGIUM
tel: +32 (16) 23.40.85
fax: +32 (16) 23.41.06
==========================================

"J P Singh" <noemail@asIhatespam> wrote in message
news:#O**************@TK2MSFTNGP12.phx.gbl...
We have a department who scans a lot of pictures for each project they work on and then emails them out to about 100 odd users within the company. This causes lots of problems hence we decided to map thier folder to a webserver so instead of them emailing out everything they can send out a link to allow users to view the pictures in thier browsers.

What they effectively do is every time they start work on a new project they create a sub folder with that particular project number and save the
pictures in there.

the users can see the pictures by using the url like

http://ourserver/xxxxxx

where xxxxxx is the project number.

We have used the file system object to generate a list of files like the one below. The question is we want to give our users and option of using the
First , Previous, Next and Last links when viewing the files in any folder
so they don't have to keep clicking every single file to view it.

One solution that I could think of was to have a java script pop with the
links but don't know how to code it. Does anyone have any idea how I can
accomplish this. Also thing to keep in mind is that new subfolders are being created every week.

<%
'Create our filesystem object
Set objFS = Server.CreateObject("Scripting.FileSystemObject")
'Get this folder
FolderPath=Request.ServerVariables("APPL_PHYSICAL_ PATH") & "files"
Set objFolder = objFS.GetFolder(FolderPath)
Set objFiles = objFolder.Files
For Each objFile In objFiles %>
<TR>
<TD><font size="2" face="Verdana"><%=objFile.ParentFolder%></font></TD> <TD><font size="2" face="Verdana"><% Response.Write("<a href='files\" + objFile.Name + "' target = " & "_blank" & ">" + objFile.Name +
"<br>")%></font></TD>
</TR>
<% Next %>

Jul 19 '05 #5
Why not try something like jalbum?
www.datadosen.se
it runs on java virtual machine, but set it up and save the defaults, you
can then click 'make album' or 'rebuild all'. Clicking make album only
creates thumbnails for new images and re-creates all of the html files.
I have a photo directory of over 2000 images and it works wonders.

-John

"bart plessers" <ba**********@hotmail.com> wrote in message
news:u%****************@TK2MSFTNGP09.phx.gbl...
I just have the same request.
Currently developping a web based file browser.
Here you can see an example:
http://www.sportconsult.be/browser/

the folders and contents are dynamically read with
Server.CreateObject("Scripting.FileSystemObject")
the folder contents is just listed right know, but I am working on creating thumbs on the fly
It is still in a beta fase, but let me know what you think about.

regards,

bartp
--

==========================================
Hyper A.R.T.
bart plessers
Paul Van Ostaijenlaan 4
3001 Heverlee
BELGIUM
tel: +32 (16) 23.40.85
fax: +32 (16) 23.41.06
==========================================

"J P Singh" <noemail@asIhatespam> wrote in message
news:#O**************@TK2MSFTNGP12.phx.gbl...
We have a department who scans a lot of pictures for each project they

work
on and then emails them out to about 100 odd users within the company.

This
causes lots of problems hence we decided to map thier folder to a

webserver
so instead of them emailing out everything they can send out a link to

allow
users to view the pictures in thier browsers.

What they effectively do is every time they start work on a new project

they
create a sub folder with that particular project number and save the
pictures in there.

the users can see the pictures by using the url like

http://ourserver/xxxxxx

where xxxxxx is the project number.

We have used the file system object to generate a list of files like the

one
below. The question is we want to give our users and option of using the
First , Previous, Next and Last links when viewing the files in any folder so they don't have to keep clicking every single file to view it.

One solution that I could think of was to have a java script pop with the links but don't know how to code it. Does anyone have any idea how I can
accomplish this. Also thing to keep in mind is that new subfolders are

being
created every week.

<%
'Create our filesystem object
Set objFS = Server.CreateObject("Scripting.FileSystemObject")
'Get this folder
FolderPath=Request.ServerVariables("APPL_PHYSICAL_ PATH") & "files"
Set objFolder = objFS.GetFolder(FolderPath)
Set objFiles = objFolder.Files
For Each objFile In objFiles %>
<TR>
<TD><font size="2"

face="Verdana"><%=objFile.ParentFolder%></font></TD>
<TD><font size="2" face="Verdana"><% Response.Write("<a

href='files\"
+ objFile.Name + "' target = " & "_blank" & ">" + objFile.Name +
"<br>")%></font></TD>
</TR>
<% Next %>


Jul 19 '05 #6
yes indeed. Nice software!

However, the asp tools is just a 'project' for me. Good for learning and
..... fully custumizable too...
thanx for the link

--
HyperART
Paul Van Ostaijenlaan 4
3001 Heverlee

"John Burns" <jo********@staff.ihug.co.nz> wrote in message
news:bk**********@lust.ihug.co.nz...
Why not try something like jalbum?
www.datadosen.se
it runs on java virtual machine, but set it up and save the defaults, you
can then click 'make album' or 'rebuild all'. Clicking make album only
creates thumbnails for new images and re-creates all of the html files.
I have a photo directory of over 2000 images and it works wonders.

-John

"bart plessers" <ba**********@hotmail.com> wrote in message
news:u%****************@TK2MSFTNGP09.phx.gbl...
I just have the same request.
Currently developping a web based file browser.
Here you can see an example:
http://www.sportconsult.be/browser/

the folders and contents are dynamically read with
Server.CreateObject("Scripting.FileSystemObject")
the folder contents is just listed right know, but I am working on

creating
thumbs on the fly
It is still in a beta fase, but let me know what you think about.

regards,

bartp
--

==========================================
Hyper A.R.T.
bart plessers
Paul Van Ostaijenlaan 4
3001 Heverlee
BELGIUM
tel: +32 (16) 23.40.85
fax: +32 (16) 23.41.06
==========================================

"J P Singh" <noemail@asIhatespam> wrote in message
news:#O**************@TK2MSFTNGP12.phx.gbl...
We have a department who scans a lot of pictures for each project they

work
on and then emails them out to about 100 odd users within the company.

This
causes lots of problems hence we decided to map thier folder to a

webserver
so instead of them emailing out everything they can send out a link to

allow
users to view the pictures in thier browsers.

What they effectively do is every time they start work on a new project
they
create a sub folder with that particular project number and save the
pictures in there.

the users can see the pictures by using the url like

http://ourserver/xxxxxx

where xxxxxx is the project number.

We have used the file system object to generate a list of files like
the
one
below. The question is we want to give our users and option of using

the First , Previous, Next and Last links when viewing the files in any

folder so they don't have to keep clicking every single file to view it.

One solution that I could think of was to have a java script pop with the links but don't know how to code it. Does anyone have any idea how I can accomplish this. Also thing to keep in mind is that new subfolders are

being
created every week.

<%
'Create our filesystem object
Set objFS = Server.CreateObject("Scripting.FileSystemObject")
'Get this folder
FolderPath=Request.ServerVariables("APPL_PHYSICAL_ PATH") & "files"
Set objFolder = objFS.GetFolder(FolderPath)
Set objFiles = objFolder.Files
For Each objFile In objFiles %>
<TR>
<TD><font size="2"

face="Verdana"><%=objFile.ParentFolder%></font></TD>
<TD><font size="2" face="Verdana"><% Response.Write("<a

href='files\"
+ objFile.Name + "' target = " & "_blank" & ">" + objFile.Name +
"<br>")%></font></TD>
</TR>
<% Next %>



Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Roger | last post by:
I have a script that runs on a PHP enabled IIS server called server1. I want to be able to determine the contents of a secondary server, server2 also running IIS via a URL. The functionality I...
10
by: Paul Kooistra | last post by:
I need a tool to browse text files with a size of 10-20 Mb. These files have a fixed record length of 800 bytes (CR/LF), and containt records used to create printed pages by an external company. ...
0
by: John Caruthers | last post by:
HELP! This problem is driving me crazy. All other web sites that are being served out through this server are working, including sites and virtual directories that are under the Default Web...
26
by: Dan Nash | last post by:
Hi guys I have a page that is *supposed* to list the directories on the server. Here's the code... folderspec = server.MapPath("./images/") set fso =...
1
by: Nut Cracker | last post by:
Hello, If anyone can point me to a good ASP based Control Panel for IIS5, I would be much obliged. I hacked together an ASP site for file uploads and sharing. Its very simple, and basically...
0
by: Tim Smith | last post by:
Dear All, Uncovered a problem with a home grown site replicator. We have directory browsing enabled to allow our remote clients to "dynamically discover" new files/directories (sites) we have...
2
by: Joe Kovac | last post by:
Hi! I have a Web Site, where I turned directory browsing off. I want only one sub folder to be browsable: e.g. MyApp/Files/... How do I do that? Any setting in the web.config? Thanks Joe
3
by: Dan99 | last post by:
I am not sure if I should post this here or in a potgre group, but I will start here. I recently got a new server and thus when I copied all the files to the new machine, I logically decided to...
1
by: evenlater | last post by:
I have an Access 2007 application running on a terminal server. One of the features of the app is a wizard that allows them to create an Excel spreadsheet by querying the Access data. When they...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.