Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    ASP




ASP Directory


I've been playing with the script at http://www.asp101.com/samples/dir_list.asp

What I want to know is if the script can be changed to 'read' from the dir it 'loads' from..

So I can just put the script is heaps of folders without having to edit the 'strPath' for each.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Directory
im brand new to ASP and all but at school they want a webpage and they wont support PHP which is what i know so i need to figure out how to show everything under a directory then if sub folders have them link to that folder

Outside Of Web Directory
I would like to do something like this:
<!--#include file="C:dbutilsdbConfig.asp"-->

Where the directory C:dbutils is OUTSIDE of the web directory and not
accessible by a client web browser.
The reason I would like to do this is in case somehow ASP processing
gets turned off in IIS. Since "dbConfig.asp" contains a
username/password for the database, I don't want this file to somehow
get sent back to a client browser as plain text.
Two questions:
1) is it possible to use an include file that is outside of the web
directory?
2) is there even any way that ASP processing can be turned off?
perhaps not explicitly, but maybe via malicious code or virus?

Directory To Pdf
Does anyone know if it's possible to convert files to .pdf format through ASP? or better yet, does anyone know of a utility that can take a directory of word documents and form one pdf file with the contents?

IIS 6 And Virtual Directory
I have an Intranet site sitting on an Windows XP server, which has IIS 6.0 installed. This Intranet site contains a virtual directory (VD), which sits on a second server and has Windows 2000 installed.

To test how a virtual directory would work for this particular Intranet site, I had previously set up the VD on the web server. Everything worked well...no errors.

Once testing was complete and the location of the VD changed to the second server, I have been receiving the following error:

Microsoft VBScript runtime error '800a004c'
Path not found

I understand what this error is saying, but I was wondering if anyone knows of any problems between IIS 6 being on a XP server and the VD on a 2000 server and any possible implications.

Get All Filenames From A Directory?
Is it possible to read the all filenames from a directory? Basically I want to grab all the filenames from a directory and make a flat file with all the values in it.

Trying To Browse A Directory
I'm trying to create my own browsing window for a directory on my webserver. I can access the root the directory and the first sub-directory but anything lower than that I get "path not found". I'm almost sure the problem is attaching the selected directories names on to the objFSO.GetFolder line.

I used the Mid function to get my selected directories. I can't figure out how to add the selected directories to the objFSO.GetFolder line. Code:

Protect Directory
I'm trying to protect a directory from users not logged in.
Let say i'm trying to protect a direcory called files.

I only want the user to acces the files when they've logged in.

http://www.sitename.com/files/filename.doc

Even though they know the name and path i want to prevent people from downloading the files.

I don't want the user to be able to send out the link to another friend without logging in.

Is this possible i'm using a wiindows server.

ASP Active Directory
I'm trying to connect to the active directory using asp. I'm having problems with logging in, what happens is the username accepted is not the user logon name but the displayname is accpeted heres the code:

ASP & Active Directory
Could anyone show me a sample, snippet, code chunk ... etc of how I can get ASP to find the Active Directory username based on a supplied email address?

For example: I want ASP to query active directory and retrieve the AD username for where user email address = 'whatever@whatever.com'

Active Directory
I was wondering whether if it was possible to insert users into active directory using ASP and then also viewing those users as well. Also, how would I implement such tasks in the most secure way?

Directory Trick?
Not sure how to address this, but...

Obviously in the SEO world, this:

http://domain.com/my-article-name

Is better than:

http://domain.com/article.asp?articleid=67

Here's the challenge though: How do you get your dynamic pages to appear as a directory rather than an asp page with a querystring? I'm fairly certain that there is a workaround to this to be able to have one dynamic asp script that appears in your address bar as a directory.

Active Directory
I have written a script to update user information in the Active Directory using ADSI. Here is part of it:

Set User = GetObject("LDAP://<GUID=" & GUID & ">")

User.Department = DepartmentName

User.SetInfo

Set User = Nothing

This works fine unless DepartmentName is an empty string ("").
Then I get error 0x8007200B: "The attribute syntax specified to the directory service is invalid."
This happens with all the attributes I have tried, including TelephoneNumber.
Do I need to delete the value of the attribute instead of setting it to an empty string? If so, how do I do it?

Active Directory
I'm trying to add a user to active directory using ASP and am receiving the
following error:-

Active Directory (0x80070005)
General Access Denied Error

Does anyone know how to get round this problem?

Virtual Directory
Is there a way in asp to create a new default web site within IIS
I am setting a content managament system and want to create a new default web site during on of the processes.
So for example if people create a new site within the admin section and call it Jacinto this will create a new virtual directory called Jacinto.

This would then be accessed at http://localhost/jacinto

Virtual Directory
Here are a couple of links that describe how to create a virtual directory programmatically on IIS.

http://support.microsoft.com/defaul...kb;EN-US;188954

http://www.vbrad.com/pf.asp?p=sourc...ate_iis_dir.htm

I haven't had a close look at the code yet but it's not in asp/vbscript

Has anybody done it in pure asp.I would like to do it on a site hosted by a third party and I am unable to install any dll's or exe's on the machine because it is a shared webserver.Both .NET and Non .NET would be good

Active Directory
We have a custom webpage that connects to Active Directory and pulls down
the users information which then creates a phone list for the office. We
have hardcoded the user name and password in the webpage which has to be a
domain admin in order to view the accounts... ( we have tried this with an
account that has access to AD but it did not work, we get access denied. The
process is we connect to LDAP which also needs to access a domain
controller. The problem we are having now is we are being told that we
cannot use a domain admin account to do this anymore... the question I have
is does anyone know another way of doing this without using a domain admin
account.

Virtual Directory
I have a virtual directory set up and it's fine. Now what I want to do is write files into them. When I try to do that it gives me a "path not found" error.How can I do this? Is this even possible?

IIS Virtual Directory
I want to write a web hosting application. But how to create a IIS virtual
directory programmatically in ASP page?

Directory On Unix
Is there a way to create directories using vb or jscript in IIS to a unix machine? I want to have the aility to upload files through my Win2k Web Server, and have those files stored on my Mac OS X Server under new directories based on date and Upload ID's from the Db.

PHP Scripts To Run In Another Directory With IIS
I would like to have PHP for windows run in another directory than
c:inetpubwwwroot. I have tride changeing parameters in php.ini in my
c:php directory. But nothing changes. When I run the phpinfo() I always get
Configuration File (php.ini) Path as c:windows. But I do not have the
php.ini file there. Is there something I am doing wrong or is it a bug.

I tried renameing the php.ini file and reseting the IIS and believe it or
not my scripts still work in c:inetpubwwwroot.

Keep Database In C: Directory
Is it possible to keep my database file (access db) in local pc (C drive)? I have created all the page with asp, the reason is that I cannot set the server path to write on the database if it's save under server.

I am only running all this file in one pc. how can I change below statement if I want the db file save in the local c:...Tks

<%Dim DBPath, connstring, conn
DBPath = "score.mdb"
connstring = "PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA SOURCE=" & server.mappath(DBPath) & ";" & "Jet OLEDBatabase Password=welcome"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open connstring
%>

Path Name Of FTP Directory.
I'm trying to find out the entire path for the directory on the web server that I use for FTP'ing.

I had an ASP script which did it for me once before but I've lost it. Does anyone know how to retrieve the full path name?

ASP To Active Directory
I would like to write an ASP ap that asks for username/password and
validates against the active directory. Any ideas how/where I can do this?
In addition, once these people are logged in I want to be able to send the
to exchange's OWA and just be logged in, no second login/password.

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?

Directory Structrure
Does anyone know any good tutorials / websites that show directory structure.

Ie like windows explorer but on the web in asp.

so that i can click a file and edit, rename, move.. so on and soforth

Asp And Active Directory
Is there anyway that I can add user to the active directory with asp?

Because I found one code to view information but not to add. Or if you can tell me where to see the command for asp and active Directory.

Virtual Directory
I have a website hosted on an ISP server, my code creates folder and places files in it using the FileSyestemObject. The problem is that I have to write the absolute folder/file path in the createFolder method, and I don't know the absolute path on the server, when i use relative path, the folder is placed on the system32 directory as the root folder (That is where the ASP dll is located). So how can I create folders and files on the virtual directory without knowing the physical path.

Virtual Directory
I created virtual directory(IIS) in which i placed images and scripts.I referred this directory from my application(ASP.Net).But during run time this folder is copied to my application root.How can i avoid this.

Virtual Directory
I used KB 308150 as a guide to create a virtual directory shared by a few webstores that my company hosts. The virtual folder and websites reside on the same box. The shared directory includes code files used by all the webstores.

The problem - when a user adds items to the shopping cart, ***sometimes*** the session variables get reset and all cart information is lost.I can't consistently make the error occur - it seems to be random.Also, if you have any different ideas on how to share code between many websites.

Securing Directory
I have a client who has a password protected page via session that lists a bunch of pdf's.They are a little worried that you are able to browse and see the pdf's via the url without being logged in.

I'm not sure if it's possible or not but is there a way after their username and passord is verified to automatically grant them permisson to view the contents of the pdf directory?

Directory Upload
where to find some decent code samples for using SoftArtisans FileUp Professional.I have used aspUpload to code a webpage to upload select files, rename them and check they have the right file extension but now I need to do the same for uploading the contents of a selected directory.

Directory Browsing
it is possible to add ASP code in the page displayed during the directory browsing.This page is returned by windows and lists all the files and directories contained in the current directory.The page that I'm talking about is something like:

Server IP address - /current directory/

[link to parent directory]
day, month day, year hour size file name1
day, month day, year hour size file name2
day, month day, year hour size file name3
...

Indicate The Parent Directory
I have a software that has generated a code for me, not sure if I'm allowed to give out names of other companies on here so i won't for now. anyways, the code has worked for a long time on my server just fine. Until I got a new server, same operating system and everything, i just cut and paste everything over from the old server to the new one. But for some reason now one of my sites will not let me use ".." in my code.

<!--include file=../2020applicationsconnections.asp-->

I would just place the "2020applicationsconnections.asp" file in the folder my current file is in, but then that messes up all the the linking that the "2020applicationsconnections.asp" file had in it. So is there any phrase, symbol, ect. that i should use to indicate a parent directory in this code? or is there some setting i need to change on my server that was set up on my old one.

Ftp Directory Permissions
can someone explain to me what the following privelages . eg. in one folder i want my database to be written to, but not allowed to be downloaded as a single mdb file.

in another folder i want my user to be able to upload images into it freely. other folders i want untouchable. here are the settings my host give me. if somebody could explain to me what the different users are. what certain settings will allow. in terms of ftp and website use.

here are the settings i can apply to each directory/file ....

Directory Path
I downloaded a component which will enable me to upload data to my server. Currently i am using my localhost to develop the files. The component is called Aspfree upload [from http://www.freeaspupload.net] and it has variable called uploadsDirVar which you specify the directory which you want to upload the files to.

However i dont know the real path in my clients isp, so for examle i cant use "c/inetpub/wwwroot/database".

My files are structured as bellow: alpha/admin/pages --this is where my scripts are located. The directory i wish to upload the files are at alpha/database. I've tried uploadsDirVar = "../../database" and it did not work.

Directory Resolving
I have got a site with thousands of members with their own profile, now what I want is that obviously has got their own link, www.mydomain.com/membername.

this then should resolve into www.mydomain.com/member.asp?id=124 or whatever number, now i know there is a way to do this, to create all member folders and have an index page in there that redirects to the members.asp, but the reason I want to do it this way is that I don't want to have 5000 folders on my server. how can i resolve a folder name into a filename + id... without having this folder.

Directory Security?
I would like to use ASP in a web page to modify the "Directory Security" settings of IIS. In Directory Security under "IP Address and Domain Name Restrictions" you have the ability to add an IP address of someone to ban from the web server. Does any ASP code exist to actually add a number into that field from the ASP automatically?

This would allow the perfect honeypot web page situation.

Uploading A Directory
I have used freeAspUpload to allow users to upload individual files from their pcs to my web server. Does anyone know of anything similar that will allow a directory to be uploaded?

Reading A Directory
I have been assigned the task fo displaying the directory contents of another server on our intranet. I can display contents of directories on the local machine but how do I tell the File System Object to look at a directory on another server/ machine on the network. Is there a virtual path or actual path way of doing it?

Could Not Delete A Directory
i am not able to delete a published folder. Any ideas? The files in the folder are not open, but it still says that "Please make sure files ...." I am working on windows 2000 Advanced server with IIS 5.

Browse To A Directory
I am looking for a way that a user can click on a button which will allow the user to see his harddrive and specify a path to a folder. This is much like upload in ASP except the user is not selecting a file. They are only selecting a folder. Does anyone know if this is possible using JavaScript or something else?

We need a user to be able to tell us where on their harddrive they want to save files when they download them using SoftArtisans XFile. I do not wish to create the directory. I just want to make it simple for a user to specify a path by opening a window and double clicking on the directory they want to use. The path then appears in a text box (like upload) and then we can save the file path for them.

Require Directory
I require a directory script in ASP which have both ability i.e. extracting data from Dmoz as well as user can add there links too. there are many in PHP but I am unable to find in ASP.

Search In Directory
I'm trying to deploy a service using an asp page, for this service I need to find a file in a directory using a path made for some values taken from some variables, this values change depending the user selection on the page. I dont know how to do this.

Directory Level
I have a website that is running perfectly on windows 2000 server and IIS 5. However we are now moving it to server 2003 and IIS6. No problem there however after setting everything up a problem has occurred. My directory structure is websites then webroot within that which contains the site files. Within webroot is also a directory called connections, which contains the database connection asp file.

It is a mysql database. Ok the problem is that I am calling the connection in my asp pages as follows (<!--#include file="../Connections/connLUKTrading.asp" -->). but the server will not navigate up a directory level as the ../ indicates. The site works fine if I place the directory connections in at the same level the site works but then I will have to do this at each of wwwroot's sub directories I should not have to. I believe it is a permissions problem to do with IIS6 but not sure. I have spent hours trying to find it.

Directory Structure
I'm developing a website for a software company. They want to publish news, tip/tricks and other articles on company's news section. I would like to get advice on how to name the individual article files? (There will be 1000s of them) . how to let the user query it? (i.e. news/index.asp?articleID=234544 or what?). I preffered a standard way to do all this. Pointer to any sample or tutorial on this.

ASP & Active Directory
I would like to check login credentials, ie username and password, from Active Directory via an asp page. This will allow users to login to a restricted area of the website using their windows login and password. I read a thread about it on here, but it just said that it was possible, it didn't say how it was possible.

Get Windows Directory
I need some asp code that Gets Windows Directory, Computer Name and System Information details . Then it checks if the network identification to see if the first three characters of the computer name is equal to tss. If it is correct. then it redirects them to another page. Otherwise it will display an error message.

ASP And Active Directory
Is there something that would let me integrate ASP with Active Directory? I have seen a basic ones where it will allow you to create a login page. I am actually looking for something that will allow ASP to check user authentication but also be able to do such things as check which groups the person is in and allow them into certain pages according to their groups.

ASP Active Directory
We want to be able to allow our users to update this AD profile and
sepecifically be able to change the address, city and phone number fields
thorough a web page.


Copyright © 2005-08 www.BigResource.com, All rights reserved