File And Folder Listing.

I am creating something for our intranet and i want to list the files and folders of a directory, i found some code to do this.The only problem is that it lists the asp file used to for example if i go to:"http://myserver/listing.asp" In the file listing will be "listing.asp" amongst a lot of marketing documents.Is there a way to block/stop this one file from being listed?

View Replies


ADVERTISEMENT

Folder And File Listing

a website that tells how to do this Folder and File listing? I know I need to use the filesystemobject but other than that I'm lost.

View Replies View Related

Folder Listing

I've managed to get file listings, do textstreams, move around in the file system a bit, just wondering how I get folder listings as I would file listings...
Here's what I've tried, but it's not quite working:

[vbs]
strPathInfo=Request.ServerVariables("SCRIPT_NAME")
strPhysicalPath=Server.MapPath(strPathInfo)

Set objFile=objFSO.GetFile(strPhysicalPath)
Set objFolder=objFile.ParentFolder
Set objFolderFolders=objFolder.Folders

For Each objFolderItem in objFolderFolders
mess=mess & "<tr><td><a href=""" & objFileItem.Name & """>" & objFolderItem.Name & "</td><td></td><td></td><td></td><td></td></tr>"
Next
[/vbs]

View Replies View Related

Listing Images From A Folder.

where i can find a guild for this? Iv been looking around tutorialized.com but cant find it. Im going to list some pictures in thumbnail form from a folder.

View Replies View Related

Folder/file Details

Is it possible to run an asp script to display the details (i.e. last
modifed time/date) of several files held on the client and or on the server
running IIS (if i map it to the folder with the files in question).

View Replies View Related

Delete A File From Folder

I want to know how to delete a file from a folder in ASp Like i have the path of the file at runtime in my ASp file... but how to delete ?

View Replies View Related

Setting File/Folder Permissions

I am trying to use this bit of code to change the permissions on a file. Apparently it should work but it isn't. I am getting no error messages just nothing is happening. The path to the file is definitley correct. Does anyone have any idea what I am doing wrong?
Code:
<%
strFileOrFolder = "D:WebRoothtdocsProjects est.txt"
strUserName = "Everyone"

dim objWSH
set objWSH = CreateObject("WScript.Shell")
Call objWSH.Run("cmd /c echo y| CACLS " & strFileOrFolder & " /G /T " & trim(strUserName) & ":f", 0, True)
set objWSH = Nothing
%>

View Replies View Related

Downloading A File From A Folder Above Webroot

I am currently working on an ASP based site which displays largely numerical data, which is stored in an access database. I have been asked to create an 'export' page, which, when working properly will allow a user of the site to export the table he or she is looking at and export it to a .CSV file which they can save onto their own machine.

My problem lies here, I can create the .CSV file on the server, BUT permissions on our host are such that the file can only be saved to the 'databases' folder and not on the webroot.

Is there any way in which I can either setup a way for the user to download from the databases folder? or rather than creating the file on the server, directly write the file to the user's machine?

View Replies View Related

All The Sessions Reset When Run Copy Folder Or File

I have very weird problem on my server, when I run this function: Code:

View Replies View Related

Grabbing File Size Details From A Folder

I have a folder that has a batch of leaflets in it, these are PDF files. In my application I have a list of courses and one of the fields has the name of the file.

Is it possible, without automatically having to add them by hand, to grab the file sizes and use them on a page or insert into the relevant db field?

View Replies View Related

Retreive Image File Stored In A Folder

I have a DB table, which contains the name of a image file stored in a folder. What i need to do is somehow retreive this image and display it in an asp page?

View Replies View Related

Default Folder Location For Input Type="file"

I have some ASP pages on my intranet site providing a helpdesk to my users. As part of logging a helpdesk call I am prompting them to link to a file using input type="file".

The file is on a network drive and the problem is when you click on the browse button it defaults to the clients desktop as the starting point of the browsing process. I would like to set a default location to start browsing eg etwork_serverhelpdesk to avoid confusion. Does anyone know of a way to do this ?

View Replies View Related

Creating Cookies File And Stored In Cookies Folder

I m creating a cookies in my application and it work properly but i can't see the cookies where it will sotred i checked the cookies folder but i didn't find that I want to create a cookies file as the other web site create and store where other cookies will stored in Cookies folder or Temprory Internet files folder eg:1. arvind@google.co[1].txt this stored in cookies folder 2. arvind@msn[2].txt ....

View Replies View Related

Listing By

I am displaying a list of data from a sql database. I have hyperlinked each field as i want the user to be able to click on this link, the page refreshes and all entries that are the same as the user clicked on are at the top of the list. I am using a query string as the link.

View Replies View Related

File Size And Folder Size

I'm using Windows 2000 server n IIS I'm Using FileSystemObject of ASP in Server Every File and Folder has 2 Size when we get properties of any 1 actual size and Size on Disk.now my problem is when i get the file size from ASP object it give Size value but when i try to get folder size it gives size on disk and both values are different.

I'm creating a size to access limited size to upload files so i just check the folder size and then get size for those which are going to update by user then i will less those size to actual folder size to get remaining size.

View Replies View Related

Events Listing

I'm listing events held on an Access database displaying the forthcoming events using a For Next loop (is there any easier way?).

Some of the events are considered important and to be listed if they have a value of "y" against them in a field called "important".

How would I list say the forthcoming 4 events plus ALL of those where important = "y"?

View Replies View Related

Alphabet Listing

I'll get right to the point. I'm displaying an alphabetical listing of names from a recordset in the following manner:
A
abe
alex
...
B
barb
bob
...
C
craig
etc...

Presently, I'm using a for..next statement to cycle through the alphabet, and displaying the matching names for each letter via a loop. Here is the code:

View Replies View Related

Listing Of Files

display just a listing of files in this manner.For example.If i select D: drive it should give me all files in root directory and sub folders and sub sub folders.

The operation is like a dos command
dir /s/o/b

I am using this for sitmap for one of my client, who has more than 100 folders and 50 sub folder and 10 sub sub folders
that he has more than 7000 html pages

View Replies View Related

Listing Courses

I am tring to build a registration online form that participants will be
able to choose from about 75 diferent courses divided into various sessions
and choosing a course per session.The problem I have is that I cant figure out the best way to do this:
1. either to make them static pages and then submit the values the
participant chooses into a database and use the values for billing etc. Like
this i will be able to validate / control what the users chooses e.g they
dont choose overlapping courses.
2 my second option is to list them in a database and then list them on my
page , which is easier but how do I validate what the participant chooses
and how do I move the values to the next page and making sure the right
course goes to the right session.

View Replies View Related

Listing Directorys

Is it possible to list directories of different computers in a network?

For instance, I have the script on "server 1", "server 2" is another computer in its network places under the same domain. I want to have a asp or asp.net script list the contents of "server 2" from "server 1".

Is this possible? all the asp scripts Ive seen so far can only list files from the computer/server its on.

View Replies View Related

Listing Records A-Z

I want to display a list of businesses from a database but break on each new letter eg

A

Andrews Carpets
Arthurs

B

Browns Bakery

etc etc

I haven't a clue how to do this, can anyone help please?

View Replies View Related

Listing Records

If I'm displaying records from a db as a comma seperated list with a full stop at the end what do I need to do?

Example: item1, item2, item3, lastitem.

I have a do until rs.eof loop which which displays each record like so:

<ul>
<% do until rs.eof %>
<li><%= rs("item") %>,</li>
<% rs.movenext %>
<% loop %>
</ul>

View Replies View Related

Listing Values

I have been searching google and other search engines and have not come up with anything for this question of mine. Maybe I'm not typing in the right stuff.
I am writing a couple of scripts that require me to display a list of information from a database from one catagory. I have never needed to do this before and am trying to find out how I should go about doing it

View Replies View Related

Listing Numbers

I have 2 textboxes - "from" & "to".

Assume I enter number 1 in "from" and 10 in "to" - I want the ASP to return:
1,2,3,4,5,6,7,8,9,10 and insert this into an Access database over 10 rows
into the 'number' field.

Anyone got any ideas how to do this?

View Replies View Related

Directory Listing

At work I was asked to add a link to a directory listing page. This page is with the link is located behind a secure page requiring a username and password. When I added the link I also went to iis and checked to make this directory have directory browsing listing checked.

Everything is fine however now this directory is open if you just post the complete link to it in the URL bypassing the login page. Is this a nornal behavoir and is their anything that can be done to make it prevent it to be opened?

View Replies View Related

Listing Files

I'm trying to list the contents of a directory but only showing file types of .txt and .mdb

View Replies View Related

Logic Of Listing

as i enter text in the textbox i want to narrow down there result in the box below that has all the listing of the products. i.e as i enter 'a' in textbox it will filter all products starting with 'a' then if i enter 'b' as second character it will show onlythose products that are starting with 'ab'... so how could i do that.

View Replies View Related

Featured Listing App

anyone know of a good ASP Application that will allow me to do featured listings/ or sponsored listings on a page? These need to be text based links - like google style probably.

View Replies View Related

RecordSet Listing

<code>E-Mail: <a href="mailto:<%= cn_shr("EMail") %>" class="fontLinksDark"><%= cn_shr("EMail") %></a></code>

What the above code is supposed to do, obviously, is write a person's e-mail address out, and at the same time include that address in a hyperlink so that someone could e-mail that person. The problem is that it doesn't show up. There is no error code or anything- the output just does not show up.

View Replies View Related

Listing All Files

I would like to list all files and folders on a password protected directory (basick auth). I know how to list all files and folders in a normal directory but i don't know how to do so for a password protected one, due to the fact that i couldn't find any article/book that explains how to do so and also the fact that to the best of my knowledge there is no way to pass a username and a password to the File object in order to authenticate to the webserver as an other user, all i could think of was to pass the user/pass to this directory in the header (with response.AddHeader ) but that doesn't seem to work (even though i am not sure i used the correct syntax for the header).

View Replies View Related

Listing Records

I have an access db with 5 fields, ID, Category, BusinessName, Address and Phone. I want to list the records like so but can't think how my loop and check to see if the category has been changed should look. Can anyone help?

<h2>Category1</h2>
<ul>
<li>business name</li>
<li>busines name</li>
</ul>

<h2>Category2</h2>
<ul>
<li>business name</li>
<li>busines name</li>
</ul>

View Replies View Related

Alphabetical Listing

I have an Access Database with only one table (tblBooks) with 5 fields: id, TestNumber, Book, Author, ReadingLevel, PointValue. I would like to have alphabetical listing of the records displayed by hyperlinks on the top of the page like:

<Previous All | A | B | C | ....| Y | Z | Others Next>

Also would like to have only 25 records per page and bottom page numbering. I know this is a newbie question but I haven't being able to figure it out.

View Replies View Related

Listing Folders In C: Drive

I want to be able to list all my files in a folder on the hard drive... this will be listed on our local intranet site at work.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved