473,373 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,373 software developers and data experts.

Renaming a file with aspupload or FSO?

HI;
How can I rename a file with aspupload or FSO before upload?
I looked for in documentation of these products, but I could not find
anything yet!

Thanks,

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC

Jul 19 '05 #1
6 4077
"Vilmar Brazão de Oliveira" wrote ...
How can I rename a file with aspupload or FSO before upload?
I looked for in documentation of these products, but I could not find
anything yet!


Not sure about aspupload, but SA-FileUp has a 'save-as' method.

Regarding FSO - dont believe there is a rename method, you have to copy the
file and specify the location with a new file name (bit of a pain) - then
delete the original.

Regards

Rob
Jul 19 '05 #2
More than one way to skin a cat. The two suggestions here are to "move" the
file, or to use the read/write "name" property of the file object.
http://www.aspfaq.com/2074

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Rob Meade" <ro**********@NOSPAMubht.swest.nhs.uk> wrote in message
news:#4**************@tk2msftngp13.phx.gbl...
"Vilmar Brazão de Oliveira" wrote ...
How can I rename a file with aspupload or FSO before upload?
I looked for in documentation of these products, but I could not find
anything yet!
Not sure about aspupload, but SA-FileUp has a 'save-as' method.

Regarding FSO - dont believe there is a rename method, you have to copy

the file and specify the location with a new file name (bit of a pain) - then
delete the original.

Regards

Rob

Jul 19 '05 #3

"Rob Meade" <ro**********@NOSPAMubht.swest.nhs.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
"Vilmar Brazão de Oliveira" wrote ...
How can I rename a file with aspupload or FSO before upload?
I looked for in documentation of these products, but I could not find
anything yet!
Not sure about aspupload, but SA-FileUp has a 'save-as' method.

Regarding FSO - dont believe there is a rename method, you have to copy

the file and specify the location with a new file name (bit of a pain) - then
delete the original.

Regards

Rob

instead of a file copy..can you not just do a file move?..just move it to
the same place but with a different name..saves having to carry out two
functions (copy then delete)
Jul 19 '05 #4
HI Everybody,
It runs marvellous using Windows Scripting Host:

Set objWshell = Server.CreateObject("WScript.Shell")
objWshell.Run "%COMSPEC% /C ren " & CaminhoArquivo & " topo_cliente.jpg", 0,
TRUE

thank everybody!

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC

"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> escreveu na mensagem
news:u7**************@tk2msftngp13.phx.gbl...
HI;
How can I rename a file with aspupload or FSO before upload?
I looked for in documentation of these products, but I could not find
anything yet!

Thanks,

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC

Jul 19 '05 #5
http://www.aspupload.com/manual_simple.html

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Vilmar Brazão de Oliveira <su*****@hitecnet.com.br> wrote in message
news:u7**************@tk2msftngp13.phx.gbl...
HI;
How can I rename a file with aspupload or FSO before upload?
I looked for in documentation of these products, but I could not find
anything yet!

Thanks,

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC

Jul 19 '05 #6
"Vilmar Brazão de Oliveira" wrote:
: How can I rename a file with aspupload or FSO before upload?
: I looked for in documentation of these products, but I could not find
: anything yet!

Is this a pure ASP upload or Persits ASP Upload? I tend to think the latter
when you write it as (aspupload).

If so, ... http://www.aspupload.com/manual_memory.html

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp
-MSDN Library-
http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Rebbeck | last post by:
(sorry about cross posting but I really need help with this and it fits in both newsgroups) I'm creating a little image manager and I'm using Persits ASPUpload. I have an UploadButton and...
1
by: | last post by:
I am using ASPUpload and trying to upload images to a database. I have had success in getting the image to the db and then dispalying the imnage on a webpage. The problem is wheni have more than one...
2
by: Vilmar Brazão de Oliveira | last post by:
Hi, How verify type or extension of file using ASPUPLOAD? I check documentation, but I didn't find anything else yet. thanks, -- ««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira...
23
by: Utada P.W. SIU | last post by:
Hi All, Do you know where have free/buy a upload file component? I need allow user to select the folder instead of select file one by one thanks~~
5
by: Kelli | last post by:
Hi there, I'm wondering if someone can have a quick look at my code and see if there's anything that I've done wrong. This silly script is driving me crazy! <% DIM File, Upload, Count,...
2
by: Dude | last post by:
Somewhere between 9 - 11 megs I am unable to upload, using either aspupload or the built-in uploading functionality. here is the code from web.config <system.web> <httpRuntime...
0
by: JW | last post by:
Greetings - I am setting up a web page in ASP.NET using C# to allow a user to upload multiple files and/or directories at once. I have done a lot of searching on Google, and it seems like the...
5
by: Jess | last post by:
I'm trying to build a page that the user can attach a file/s to and email them thru a form. I see plenty of info on how to actually code it to send with a variable - but how do you build a form...
6
by: Laphan | last post by:
Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload gifs, jpgs, pdfs and docs to their site for the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.