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).
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).
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?
I saw a while page a link to show folder details ie folders / files in a directory
let me know any links to tutorials
I have a folder that is protected, the users login with their unique
username and password, these are held in a text file.
Is this information logged in a way that I can use the login name as a
variable for use on my page, such as if I login as Jon the page can display
"Logged in: Jon"
I've created a form for users to fill in, and I want to be able to write the details of each form to a text file. Each file is named username.txt (eg. JohnSmith.txt or MikeStiletti.txt)
However, when the code below is processed i get a "Path not found" error. Now these files are on a web server and i am trying to write to my C drive. It would be great if I could create these files on the same web server too by just removing the "C:Surveys" on the bolded line. Code:
I have a strSQL line.. that basically does a SELECT * from many joined tables. The output is displayed into a table. What I'd like to do is, to have each table's field entries (say a Name field) displayed as a URL.
Clicking this URL will spawn an external viewer, which will open a predefined MS Word template. ASP code should then do a few SELECT statements, parse them, and write them to certain areas of the MS-Word document.
Practically, a user should be able to click on a name, and have MS-Word launch, filling in details on the Word document, such as Name, Address, ZipCode and so on, which are stored in SQL-Server 2k. how I can get this to work?
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 View Relateda 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 RelatedI 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 RelatedI 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
%>
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?
I have very weird problem on my server, when I run this function: Code:
View Replies View RelatedI 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 RelatedI 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 ?
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 RelatedIs it possible to find, and display a pc name in an asp web page using vb.
I'm trying to get a very simple task to work. Using the users login name
(gained from IE) I want to get their full name from AD (Win 2k and 2003 AD
domain).I'm using this ASP code on the IIS server:
usr=mid(request.ServerVariables("LOGON_USER"),8)
Set User = GetObject("WinNT://domainname/" & usr & ",user")
response.write "Name is " & User.Fullname
set usr=nothing
This code works fine when run on the server direct using wscript, but when
served by the web server I get the error:
Active Directory (0x80070005)
General access denied error
I have a working members code now where members can sign up, login to a protected page and log out. I now want to personalise each members login so when a member logs in it says welcome [username] etc and then when the use logs out it says 'thanks [username] you have logged out'. I tried to query my database but it doesnt work.
View Replies View RelatedIs there a script ( without DB) I can use which can give the entire details of the server, including the root dir, folders info.
View Replies View Relatedhow I can repeat details in a ASP page. For example I have to fill in a a form which has the following quetion.Language : (a text box here to fill in the details)
and then a message with 2 buttons Do you want to insert another? YES NOWhen click on the button YES, I want my asp page to take the quetion "Language :" and the text box and copy it so the user can insert another value.How can I do it ??
Is there a way of detecting and then recording a visitors details(eg. browser, ip, country, OS...) and then storing that info to a database automatically?If, so, could you plz tell me how to record the info straight to a database without the user having to click on anything.
View Replies View RelatedI have seen an example of a page that displays the users browser details in a friendly manner like this:
Your operating system : Microsoft Windows NT
Your browser : Microsoft Internet Explorer 6.0
from a HTTP_User_Agent string like this: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Can somebody give me some sample code of how I can extract this result out of the string, using asp.
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.
I have a list of requests that I'm displaying. The client wants to be able
to display the details of the FIRST request as the page loads.
Right now, as I loop through the recordset, I'm checking the querystring for
"rid", and if rid = "" then I do a response.redirect to the page adding the
rid value to the querystring from the recordset.
I'm thinking this is not very effecient, but I can't figure out anything
better.. anyone have a good solution to show the details of the first item
on the list?
I am looking to create an upload page for my website. I would like to have the user login and depending on who they log in as depends on which folder they upload to. I'd like to be able to upload multiple files, have the file size(s) show up on the form and also be able to calculate how much time it will take to upload the file.
View Replies View Relatedim trying to work out basicly what i want to do his have a list of downloads and then at the top of the page have a form that has contact details that enables the download links and sends the details to an email address. is this possible and if so are there any scripts avaliable
View Replies View RelatedI'm trying to build a details page that is reachable when a user clicks on the ID of a query that's returned multiple rows of data. The first piece of code is the querytest.asp page, and the second is the details.asp page. However, how do I get the user_id passed to the details page? Code:
View Replies View RelatedThe code below takes the script name of a page (which is always an asp file) and substitutes the asp extension with html and then inserts the file in the <frame> tag.
This code works file for a url such as www.somesite.com/file.asp But if the url includes an index eg www.somesite.com/file.asp#position1 how do I get the #position1 added to the file name that is used in the <frame> tag? Is there a server variable for # info? Code:
I have a button which runs and submits a form and if the name and contact details aren't filled out yet all it does is recalculate some totals.
BUT, my problem is that there is a checkbox in this form that is being cleared when the form is submitted at this stage, is there anyway to stop this??
I am of the understanding that the checkbox has to be in the form because when it is selected it adds a value to a field further down in the form.
There is also another text field that I need retained as well???
Just uploaded my database how to i create a simple page where i can enter customer details into my database. i would like fields like customer id, first name last name etc where the telephone number could be the primary key
Im trying to make a client area on my website and an not sure on how to go about editing clients details.When the client logs in they are brought to a menu where they can update there record. How can i get the appropriate record from the database so they can update there details?
View Replies View RelatedI badly need help head sore from banging it off the wall. I have a Gridview which when a field is clicked on displays more details for that record in detailsview. I am using a single SQL table with fields for details and 3 image file locations.
I need to create a slideshow in detailsview to show these 3 images. I have no problem displying 1 image but don't know how to add a link to flick between images.
Does any one have an asp page they can share that returns current session details, cookies etc. I can't get session arrays to return in a page.
View Replies View Related