Looping Through Directories

i have a subdomain on my works server that i use to store different stuff on, like different projects that i'm working on. They are all set up in their own folders, for example, sub.blah.com/project1, sub.blah.com/project2 etc etc. (all the folders have different names).

What i want to do is to create an index page on sub.blah.com that will list out all of the folders. I dont have any access to the server workings so this all has to be done with a script.

View Replies


ADVERTISEMENT

Sub-directories

I know how to copy files from one location to another but how would I go
about copying a file from one directory into serveral - or actually all
subdirectories in a single action? Some kind of loop

Basically I want to be able to enter a filename into a text field and click
submit which would then copy the named file (which resides in the root
directory) into every subdirectory under the root (1 level only). Would be
helpful to be able to specify mutliple files to be copied at once.

View Replies View Related

Seeing Directories Using ObjFileScripting

I found this script on the web that I've adapated a little to see the files I put into a directory. However it doesn't see any sub directories. Does anyone have any idea how i can point to a directory and list everything, including the directories? Code:

View Replies View Related

Directories And Security

It's funny that this has not been invented yet, or has it?:
You store your DB outside your default website.
It is accessed only through your ASP code and a ODBC-connection.
This way your DB is not obtainable for the web user.
Why doesn't Any One create a connection corresponding to ODBC, lets call it
FileConnect that in the same way allows us, in a web site, to have directories
and files that are really hidden?

View Replies View Related

Virtual Directories

In php you can have a script like: http://localhost/page/parameter1/parameter2
where page is acually a php script and the script gets the parameters in $PATH_INFO

I need something similar in asp. If possible without modifying any settings on IIS.
Here is a tutorial on how to do it in php. http://www.zend.com/zend/spotlight/searchengine.php

View Replies View Related

Uploading To Different Directories

I am trying to set SA-Fileup to filter the files that are uploaded based on the name of file selected in the form. I am able to get it to work on Filetype, but I need it to do it on Filename is not Filetype. where I can find something on this?

View Replies View Related

Global.asa And Sub-directories

My global.asa maintains some stats for me. However when I put part of my site in a sub-directory it appears to run the global.asa file from the sub-directory when I am accessing content in that sub-directory. This makes all the paths specified in global.asa wrong.

I can understand that it runs, since it is application driven and all sub-directories will be part of the same app, but I can't understand it running in a different directory to where is resides.

View Replies View Related

Creating Directories

Is it possible to create a directory in ASP? If possible, how?

View Replies View Related

Images In Include Used In Different Directories

I have an include file which contains some images. If I use this include in a sub directory, the path is obveously wrong. How can I sort this problem - is it best to just use absolute paths rather than relative?

View Replies View Related

Includes, Images & Sub Directories

I'm creating a site which will have the home page at the root level, but all of the sub pages in sub directories:

root/
-homepage.asp
-subdirectory/
subpage.asp
-images/
logo.gif
-includes/
header.asp
Each page of the site will have the include <!--#include virtual="/includes/header.asp" -->

header.asp is a table with our company logo, logo.gif. The problem I'm having is that subpage.asp does not display logo.gif because the path in the include is only correct at the root level.

I don't want to create multiple includes. Is there another way to make this work that I'm missing? Thanks!

View Replies View Related

Reading Files And Directories

I have several files and directories and I want to read the contents, seperate them into fields and INSERT them into a database.

The structure is as follows:

D:DISCSSC8849SC8849-01 Artistname - title.zip
D:DISCSSC8849SC8849-02 Artistname - title.zip
D:DISCSLG114LG114-01 Artistname - title.zip

I want to read every file in D:DISCS, seperate the filenames into: Disk Number, Track Number, Artist and Title - drop the .zip and the hyphens entirely and insert the data as a record in a database.

View Replies View Related

Including Menu In Certain Directories

I'm including a template on all pages in a site. In the template I have a menu. What I'd like is to have a different menu displayed if I'm in a different directory. Something along the lines of:

If path is /mainsite Then
Regular Menu
If path is /admin Then
Admin Menu

Just not sure about how to go about getting there. My first thought was to use the PATH_INFO server variable, but that returns the page name too. Any suggestions?

View Replies View Related

Cookies And Virtual Directories

I'm having a problem with cookies in a virtual directory,

A cookie is created by an ASP application in the root folder i.e.
http://xxx.yyy.com

I'm unable to read this cookie in a virtual directory i.e.

https://xxx.yyy.com/mydirectory in a Visual Studio 2005 application.

If I create the cookie in my virtual directory the application in the root directory reads the cookie without any issues.

View Replies View Related

Protecting Directories And Redirecting

Is there any way to setup a multiple password page where if user1 logs in it will take him to dir1 and if user2 logs in it will take him to dir2 and so on. Basically, we need a page that checks to see if the user name and password exists and then redirects accordingly.

View Replies View Related

List Directories But Not Subdirectories

I have managed to cobble this together And now I have got stuck with modifying it.

What it does is provide an option box that allows you to choose any of the folders in a directory. The files in that directory are then listed below the option box. (the file structure dictates the order/grouping of the files)

It change the path-to-directory with a manual option. Code:

View Replies View Related

Session In ASP For Two Virtual Directories

Can a session be good for two different virtual directories under the
same site? They are for internal use only.

Would the session be carried from the virtual directories?

Site one is : http://fs1/review1/

Site two is: http://fs1/review2/

View Replies View Related

List Directories Editing

how to do Editing of default IIS directory listing template. How would you edit the template that IIS uses to list directories?

View Replies View Related

Free DLLs :: List FTP Directories

I want to be able to list FTP directories using any FTPs. Are there any free dlls out there?

View Replies View Related

Uploading Images/Creating Directories

I have only been developing small sites using asp and Access database. I want to advance my skills and develop a large site. Basically, I need direction in relation to having a user set up an acct., and once set up, being able to upload images. FrontPage (dare I say it) has always enabled me to allow visitors to upload one image at a time, and then only to a specific directory. What I want is the ability to have someone upload a specified amount of images to a directory that is created when they opened their account. ie., /tom/images If anyone knows of of good tutorials on this, I sure would appreciate it. I also want the ability to check images file size and dimesions, and resize or reject if neccessary. Can I learn how to do this w/out buying some program online.

View Replies View Related

Username Lookup For Protected Directories

I need to look up what user name was used to login to a protected directory using ASP.

I don't want to create a login page, etc. It shouldn't be necessary. Only employees who already have user accounts need to log in to the webapp and the protected directory login box is all the security I need. I just need to be able to access the username that they used in my application. Code:

View Replies View Related

ASP Looping

I have a database with many fields. One of this field is of type memo
which contains some bullet points seperated by # sign (something along
those lines). What I have is this code which gives me a table with one
row and as many columns in the split array. Code:

View Replies View Related

Looping With Asp

I am trying to loop through my database to display a picture. That is no problem. Where I hit a snag is this. I only want three pictures then break to a new row and three more, etc. Any ideas? What this does is display one record. Code:

View Replies View Related

Looping

Is it possable to exit a loop in asp.

View Replies View Related

Looping

i got a problem regarding abt several looping running at the same time. I wanted the 1st loop to run once and then the 2nd loop to start running after the 1st loop ran once.. but the coding I do doesn't seem to be able to do that. Can sum1 teach mi how to do it?
The coding:

View Replies View Related

Looping In ASP

I am working on an asp page that goes to a rs to get data. I need to run a loop that pulls the data line by line until it is at the end of the database. I could do an Until loop, but I don't know how many records are in the recordset. So I suppose it should be a do until end-of-file?

View Replies View Related

Looping In ASP

In my arrary ListSong(), I have song names like (Song1.mp3,Song2.mp3,Song3.mp3,.....).

If the user selects more than one song, it should play one after the other. I want to do some looping for the <embed> tag. Here is my code:

<EMBED SRC="Songs/<%=ListSong(0)%>.mp3" VOLUME="50" AUTOSTART="true" HEIGHT="80" WIDTH="415">

View Replies View Related

SQL Looping

is there anyway to do a loop with an sql command in? Ive created a message board type of thing but its got the option to delete unwanted messages. next to each message there is a lil checkbox with the Record ID for the message as the name tag, what im trying to do is when a user clicks say 3 messages to remove it puts the id's of the checkbox's clicked into a query string or something and then loops deleting the messages in the database.sorta works like this

Set MyConn = Server.CreateObject("ADODB.Connection")
MdbFilePath = Server.MapPath("databases/conkers.mdb")
MyConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
messages = request.QueryString("ids")
for each value in messages do
mySQL = "DELETE FROM messages WHERE ID = '" &messages & "'"
Set RS = myConn.Execute(mySQL)
loop

View Replies View Related

Looping Through A Recordset

I have a recordset which writes out a table. As it is constructed now it loops through and repeats every record, but i want the last two rows to only appear once, but when I try to move the rsProd.MoveNext to where I want the loop to stop I get an error msg saying:

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. Code:

View Replies View Related

Looping Through Folder

I have a folder with about 40 swf training movies.
I want to loop through the folder and display the titles of the movies and make them links.I just need help getting pointed in the right direction to make this happen.

View Replies View Related

Looping Issues

I've got an Array that has split a text field in an Access DB. This Array is now: Array(0) = 1 and Array(1) = 3.

I have another field in another table that has a number and then the name associated with that number.I am wanting to display the name associated with 1 and 3 from my DB but a Do Loop isn't working. I presume because after it displays Array(0) (which it does well) the Looping condition is no longer true because there is no "2" in my array, it skips to 3. So Array(0) works because its true, but then it stops because there is no two but does not pick back up with Array(1).

View Replies View Related

Looping Through Database

I am working on creating reports from an access database. I am trying to populate a table created from the one-to-many relationships in the database. In one column a name appears more than once because it is related to multiple records.

When I display this information I would like to only show the name once in one column but show all of the records it is related to in another.

I have attached a spreadsheet the better explains what I am trying to do. The report is written asp and I have been using loops to write the data to the report. I have also attached the code I am using. The report uses values that the user selects from a map. Then it selects the same values in the database.

View Replies View Related

Looping Thru Array

I need to look at each element in an array to write it to the web page, one element at a time. The previous page contained a form of dynamically created checkbox sets. The number of checkbox sets will always be unknown. Anyway, here's my question:

I've tried different code (due to circumstances that would be to lengthy to get into here, I need to use vbscript, be able to use javascript within vbscript code.

Here are examples I've tried and the results: Code:

View Replies View Related

Looping Insert

I'm currently having some major problems with an insert form that I created
Basically, if a large amount of information is being inserted into the database I get an error
This seems to be a restriction imposed by the host
What I would ideally like to be able to do is to grab so many characters from the textarea insert this into the database and loop this until everything has been inserted (the information would all need to be inserted into the same field of a record)
I've never tried this before so would appreciate any advice/tips on how to go about doing this

View Replies View Related







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