Concatenate Filenames

I am developing a school Intranet and have an ASP page that allows students to upload files to the server for marking by teachers.

Unfortunately students often do not identify themselves correctly in the work they submit, so I am trying to find code that changes the name of the file they upload, by adding the their login name. (the the server variable AUTH_USER.)

AUTH_USER is easy to get but to perform the concatenation has me stumped.

View Replies


ADVERTISEMENT

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.

View Replies View Related

Seperating Filenames

I'm using the input File method for users to upload their files to a folder on a website, I wanted to store the filename in the database but the information that is produced from the input File is an absolute path to the file on the users system (ie. c:/usersfolder/usersfile.doc)

where as I only want the filename (usersfile.doc). I am presuming that this is going to be a Split method but is there a decent place to find a tutorial on this. I've had a good google but can't seem to find anything.

View Replies View Related

Use FSO To Copy Filenames To A DB?

I must have about 300 images I intend to manually type into a database. Aaaaargh! I was hoping someone might be able to give me a script that if I were to place all the files on a server, I could access the directory, and loop through each of the files, storing the name in a field... Can it be done?

View Replies View Related

Reading Filenames In A Folder

I would like to read the contents of folder and display filtered results in my page.

View Replies View Related

ASPUpload. Write Indivdual Filenames To DB

I've used asp upload before to upload single files to my server and write the name of the file to a database. I'm now trying to upload two files and write each file name to a different field in a record.

Currently my code says: ....

View Replies View Related

Concatenate

String a=Test
String b=test@test.com

How cn I concatenate this to get

String c ="""Test"" <test@test.com>"

View Replies View Related

Concatenate String Value

How do I concatenate this string value? datatype is text.Code:

chkboxvalue = RS("feild1") & RS("field2")
<%
Response.write"<tr bgcolor=silver >"
Response.write "<td><input type=""checkbox"" name="" chkboxvalue "" value=""chkboxvalue""></td>"
Response.write "<td>" & RS("field1") & "</td>"
Response.write"<td>" & RS("field2") & "</td>"
Response.write"</tr>"

%>

I am getting an error:

Microsoft VBScript runtime error '800a000d'

View Replies View Related

Concatenate String ASP

String a=Test
String b=test@test.com"

How can I concatenate this to get

String c ="""Test"" <test@test.com>"

View Replies View Related

Concatenate Two Strings

if i've two strings like:Code:

dim pic_name=replace(Request.Form("pic_name"),"'","''")
dim pic_path="pro-details/PICs/"

how could i merge the two strings to get the complete pic-path

View Replies View Related

Replace And Concatenate

I've something of this sort:

stremail="task@yahoo.com;task1@yahoo.com;task2@yahoo.com"
what I need to do is.

I need to replace and concatenate it should look like this

cdomail.Address "task@yahoo.com"
cdomail.Address "task1@yahoo.com"
cdomail.Address "task2@yahoo.com"

How to do this??

View Replies View Related

Is There A Way To Concatenate Wav Files?

in the programming environment that i'm developing, i use asp code to interface Automated Voice Response on my MS Access database and any other capabilities. One requirement that i need to do is to conactenate several wav files into one so i can send all recordings as one on email. I will need to program this using vbscript/asp. Is this possible? Any ideas?

View Replies View Related

Sort Filenames With Download Links By Date - Multidimensional Array ??

i use this script to generate download links from directories which are first passed to an script to record the number a link is clicked.

the function is calle with a path like:
ListFolderContents(Server.MapPath("/dir1"))

my question now is: can i write this to an multidimensional array (or object oriented?) - and then sort it by date ?? if so how ? Code:

View Replies View Related

Concatenate Strings And Arrays

how to set a variable to the contents of an array from a certain element on

for example..

myArray(0)="zero"
myArray(1)="one"
myArray(2)="two"
myArray(3)="three"
myArray(4)="four"
myArray(5)="five"
myArray(6)="six"

I would like to set all values after two to a string variable..separated by underscores

str="three_four_five_six"

is there convenient string method for this ..?

View Replies View Related

How To Concatenate Variables In Loop

How do you create variables in for loop Code:

View Replies View Related

Concatenate Textbox With Email Address

I have an asp page and wish to concatenate a Contact Name textbox to part of an email
address and place this concatenated text into an email textbox. I know how to concatenate
but unsure of how to implement this via the textbox event, onexit. Can this be done?

The code I'm using is:

Dim EnterName
Dim NewEmail
EnterName = Request.Form("txtContactName")
If Instr(EnterName," ") <> 0 Then
EnterName = Replace(EnterName," ",".")
NewEmail = EnterName & "@something.com"
End If

The html code for the email textbox is:

<Input type="text" Name="txtEmailAddress" value="<%=NewEmail%>>

Like I said not sure if this will not work until the txtContactName has an OnExit event, or something similar.

View Replies View Related

Concatenate Access Memo Fields

I have an ASP that displays two MS Access memo fields in separate table cells just fine. However when I concatenate them with SQL as in "select fld1 & fld2 as temp...." to display them in one cell only part of the first field is displayed in the table. What is causing this?

View Replies View Related

Converting Spaces In Filenames To "%20"

I'm writing a shopping cart system, and the item listings have thumbnails along the left side, kind-of like the layout of eBay. This works fine and dandy unless the filename happens to have a space in it. When there's a space, the Url ends where the space is. I tried using the replace function, but to no avail. I tried ItemPic=(replace(ItemPic," ","%20")

However, the filename then becomes something like Cool%2520Item.jpg instead of Cool%20Item like it needs to be. If anyone has a solution other than going through about 10000 pictures and renaming the ones with spaces on how to make this work. Code:

View Replies View Related

Read & Concatenate "n" Number Of Form Elements Into Database

I want to set up a simple database for my mom to enter her recipes into. I am going to use Access and ASP. In the database, I will have five fields (Recipe_ID, Recipe_Title, Recipe_Ingredients, Recipe_Instructions, and Recipe_Image). When my mom goes to enter a recipe, I want to ask the form to ask my mom how many Ingredients?

She will then specify "n" number of ingredients which will cause the page to display "n" number of text boxes. I can figure this part out myself. When the form is submitted, I want a script that will read and concatenate the ingredients, wrapping <li> tags around each one. The challenge for me is the reading of an undetermined number of form elements?

View Replies View Related







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