469,268 Members | 991 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,268 developers. It's quick & easy.

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 3906
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by John Rebbeck | last post: by
2 posts views Thread by Vilmar Brazão de Oliveira | last post: by
23 posts views Thread by Utada P.W. SIU | last post: by
reply views Thread by JW | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.