Chris,
While I don't really have the programming skills necessary to actually whip
out the code quickly, in pseudo-code the logic would run something like the
following...
If user uploads file then
get the filename of the file
check the data storage and get the total number of files uploaded by the
user
assign the upper bound of the data storage to a variable
increment the variable by one
split the filename at the "." into two temp variables
concatenate the storage variable onto the end of temp1 variable and
then...
concatenate temp2 back onto the end of temp1 and assign that name to the
file.
VB.Net has many methods that I've been learning about recently that can do
wonderful things and my little example may be a bit too verbose... or not
verbose enough. :) I've actually been 'reading' through the help and
checking out the methods and properties of methods along with the help I've
been getting. Hope this helps you in some small way.
"Bonzol" <Bo****@hotmail.comwrote in message
news:11**********************@a3g2000cwd.googlegro ups.com...
Vb.net 2003, Web application
Hey all!
Just a quick question.
I have a site which allows users the ability to upload files by the
HTML brows button control.
My question is if a user submits a file,, and every file they submit I
want my code to change the name of it.. So say the user submits
'Hello.txt'. When they press submit I want it to be changed to
'Hello1.txt'. I tried just changing the name but it stopped the file
from working. Or also. what commands does one use to just change the
name of a selected file on the local machine?
Any help would be greatly appreciated.
Thanx in Advance
Chris