I Need To Find A File But Only Have Partial Name

I'm looking for images in my asp page.

I know the path and first and last part of the filename.

Example filename: A01-30420.jpg

I have the A01- and the .jpeg. The ##### portion could be anything, but always numeric (sofar).

The A01 is unique, i.e. there will only be one file of A01-#####.jpg

I'm using fileExists object to confirm a file exists when I have the full filename but havn't been able to figure out how to get the full filename when I only have a partial.

I could rename the files, i.e. drop the -##### but I'd have to do that everytime I get new ones so I'd like to work with the original filename if at all possible.

View Replies


ADVERTISEMENT

File Properties :: Find Out The Width And Height Of An Image File

is there a way, using asp, to find out the width and height of an image file?

View Replies View Related

How To Find Excel File Width And File Version

It works if the file in on the server side, how to use the component (DSOleFile) with the file on the client side? Also how can I calculate the width of the file. (Page set up - Landscape or porrait). Code:

View Replies View Related

Loading Partial Page

Getting data from an database and displaying it on a web page is some thing I have done for years. Now instead of getting data from a database, I want to get the text of a file and display that on the web page. The file choice is determined by a user click on a anchor link.

So far I have considered using fso to read a line at at time and doing Response.Write for each line read. Seems to me there should be a more elegant solution. Should I build an array of text line while reading and do only one response write? Or is there another solution that I have not discovered.

View Replies View Related

Display Partial Text Of A Record

On the webpage, I want to display like this:
I use Response.write objRS("FieldName") to display the value of a record .I guess a number of chars is allowed to display a part of record.

View Replies View Related

.asp With JScript (CANNOT FIND .log File)

There is a simple user tracking form on this website that asks users for info, then stores it in a log file at /logs/

This script is located in a file in /scripts/

When we attempt to submit the .asp form, the following error message comes up:

Microsoft JScript runtime error '800a004c'

Path not found

/cardin/scripts/usertrackproc.asp, line 22

Line 22, which has the mappath, reads as follows ....

View Replies View Related

Can Not Find The Include File

i have been trying to create a page that has the include file but it is not able to find the include file. the code is as follows:

<!--#include file="Connections/connECC.asp" --> (it is listed in index.asp page)

My site map is as follows:

Connections
(under Connections folder) connECC.asp
Templates
index.asp

View Replies View Related

How To Find The Exel Version And File With

I need to load Excel file from client into a database in asp, before loading I need to verify the excel version and the file width ( and if possible length).

View Replies View Related

Find Links In A Html File

I want to make an ASP page look at my index.html file, and give me a list of all the hyperlinks that are in this page. Is this possible, can anyone point me in the right direction?

View Replies View Related

Whats The Exact Error For "system Cannot Find The File Specified"

i get "system cannot find the file specified" error. iam sure that the path of file iam looking for is true. i guess this is a friendly message thrown. when i turned off the freind messages in IE (client side) i still get the same error. is there any way that i can see the exact error so that i can debug.

View Replies View Related

Cant Find Folder!

However, when i opened a page on my pc the database string was:

DBFolder = path & "..mysqldataformuladata

I cant find the folder in question. Even when ftping.

Any ideas where is could be lurking?

View Replies View Related

Cannot Find DWG Files

I am trying to locate a file using the following code

Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")

strURL = "http://server/ApprovedAutoCAD/140-00007-01.dwg"
objXMLHTTP.Open "GET", strURL, False, "login", "password"
objXMLHTTP.Send

strReturn = objXMLHTTP.status

I get a 404 status back indicating that the file is not found, which is incorrect. I am able to locate XLS and DOC files on the same directory. Any ideas why I cannot find a DWG (Drawing) file?

View Replies View Related

Find And Replace

I am not sure if this is a question for this forum or the IIS forum but here goes. I have a dedicated server on which I am hosting about 80 websites at the moment, all of which have been created by copying a template site. All of these sites have an identical structure and are located in the same directory on the server, C:Inetpubvhosts. Several times when I have needed to make an adjustment to the sites I have to go into the remote desktop connection to the server and go site by site, copying and pasting files. For example, as each site has the same pages, ie., map.asp, sometimes I make a change to that page and have to copy it to every site. Could I write some sort of script using the FSO and execute it from one site and have it loop through each site on the server making the neccessary change(s)?

View Replies View Related

Could Not Find Path

if i use the physical path where the database is located then my code works fine
such as ("e:folderabc.mdb")

but when i use the server.mappath("abc.mdb") , i get error

View Replies View Related

Can't Find End Statement

The dreaded missing end statement
I need another set of eyes mine are about to cross.

My Error

Microsoft VBScript compilation error '800a03f6'

Expected 'End'

calendar.asp, line 289

My code:

View Replies View Related

Find Performance

We have several pages that are running very slow, is there any way to
identify which pages are taking the longest to process?

View Replies View Related

How Can I Find What Value Is In My Variable?

At first glance, the question in the subject line seems way too easy. But I
am finding some situations in my app where the value in a variable is some
sort of blank-like value, such as Null or "&nbsp;" or "", but I cannot tell
which.

Of course, in order to find out the value, I did a response.write, and added
a nonsense word afterward, to help make sure it is writing it out for me.

First, I tried to check for null: Code:

View Replies View Related

Best Way To Find <> NULL

How do I go about testing to see if a value is not equal to NULL? isNULL provides the opposite functionality, but all my attempts at the former return a FALSE value.

View Replies View Related

Find Referer

I want to know how to find out who is sending visitors to my site. So i obviusly need to find out who a visitors referer is.

I took a guess and thought that this is what I should use:

request.ServerVariables("HTTP_REFERER")

But that does not return anything. Any ideas guys?

View Replies View Related

Using The Find Method

Based on what the user selects in a combo box I need to find the value from another column in the same record. This is what I am using:

rsPrice.movefirst
rsPrice.Find "Component='Desktop'"
If (rstPrice.BOF = True) or (rstPrice.EOF = True) Then
response.write("The Price for the Component Not Found")

else
curPrice =rsPrice("Score")
End If

I keep getting an error messages:

Microsoft OLE DB Provider for SQL Server (0x80040E29) Rowset does not support scrolling backward.

View Replies View Related

Find Quoteint In Asp

can u tell me how to find the quoteint in asp

for e.g
290 / 100 = 2
I want result 2 but it gives 2.9

View Replies View Related

Find Images

where i can get very professional and sophisticated images for my web sites ( even if i have to pay for them )

View Replies View Related

Find Errors

I'm coding in classic asp and can't figure how to get IE6 to display some kind of descriptive message about code errors? I have the correct settings under ADVANCED in IE's options selected.

What bugs me is sometimes IE will report the line number and a message, and then other times it's the standard "The page can't be displayed." When you have hundreds of lines of code, how can you fight this?

View Replies View Related

Find In String

How can i count the number of times a string appears within another string.

View Replies View Related

Find Out The Count

i have 2 columns. called wintersubjects,summersubjects . the data in the columns will be 4 subjects.

maths
science
arts
social science

i want to find out the count for all of them.

View Replies View Related

ADO Find Method

I am attempting the following for a real estate website. I want to list the agents for the office all of whom have a unique identifier with an Auto Number type. As I loop through the recordset, I also want to open another table called listings. This table has a field called agent whose value is a number and corresponds to an agent in the agent table.

If there is a listing in the listing table, I want to insert a link to "View Listings", if not, no link. I am having a hard time doing this and if someone could point me in the right direction I'd appreciate it. I tried the Find method but to no success.

View Replies View Related

Find Numbers

I want to find numbers in one comma seperated string which are not in another one. For instance if I have two strings "strString1" and "strString2 how can I find numbers in "strString1" which are not in "strString2" Example:

strString1 = "1,3,6,12"
strString2 = "1,6"

In this case the numbers I want to end up with are 3 and 12.

View Replies View Related

Cant Find Syntax

I am working on a survey and I have gotten the pages done to collect the data but now I am having trouble finding the correct syntax for displaying some of the data back to the user. I basicly need one to do this

Text on site <field1*field2*1.5> More Text on site.

and a seperate one to do this:

if field1=a then write "message one"
if field2=b then write "message two"

View Replies View Related

Find And Replace URL

I'm working on something at the moment which pulls through a url to another page if it exists. I've got that bit working.

The bit I don't know how to do (real asp beginner here) is to check if the url has http:// in it, and if it has, remove it.

View Replies View Related

How To Find Coordinates On The Image

I have one doubt in my asp code (or) in HTML.

How to find coordinates on the image for display the text on that image....

View Replies View Related

Find Current Directory

I am wondering if there is a command to determine what the current directory is.

My reason for this is that i have a include file called connection.asp sat in a folder called Data. My connection.asp file holds the connection details. I need to determine whether the file calling the include is in the root folder or not.

EG. if it is the root folder the location of the db will be "Data/dbMarkShop.mdb" but if it is another folder, say a Scripts folder, the location of th db would be "../Data/dbMarkShop.mdb"

View Replies View Related

Find Out Distance Calculator?

I am looking for a way create a distance calculator from city to city, zip to zip, so on so forth. I know this has been done many times. Does anyone have this around by any chance. Also does anyone know of a place I can get the db or text file I need for this? I know there are some floating about but haven't came across a decent one yet.

View Replies View Related

Find Missing Right Parenthesis!!

I keep getting an error message: missing right parenthesis and I cannot for the life of me figure out why. Please help me find the problem! It may simply be that I've been staring at the code too long and I'm missing something obvious.

SELECT A.FIELD1,
NVL(SELECT DISTINCT B.FIELD1FROM TABLEB BWHERE B.FIELD2=A.FIELD2AND B.FIELD3 = 1AND B.FIELD4 =(SELECT MAX(FIELD6) AS MAXFROM TABLEC CWHERE C.FIELD2 = B.FIELD7)),0)FROM TABLEA A

View Replies View Related







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