Donate SIGN UP

Auto Renaming Files

Avatar Image
AliFlump | 11:46 Thu 02nd Dec 2010 | Computers
10 Answers
Hi all. Got a rather technical question. How can I get a file to rename itself when it is uploaded to a server. I'm going to be having alot of files with the same name being sent to my server and unless they can rename themselves they will get overwritten

FYI, the people uploading the files won't be able to change the file name

Thanks for any help anyone can offer.
Gravatar

Answers

1 to 10 of 10rss feed

Best Answer

No best answer has yet been selected by AliFlump. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
I'm not sure if this could be done automatically. The techie brains will be around soon...
One way would be to copy them all into a single folder and rename them as you go, and then upload them from this new folder.
" ...the people uploading the files won't be able to change the file name ..."

Why not?
What sort of files are these, if you don't mind?
Question Author
The files will be sent from an application to my server so the senders can't remane as it's within the application.

Also, I can't rename them myself as they will be sent to my server and if they are not renamed they will overwrite themselves before I get to them
It is a txt file that they will be sending I think. We tried to change it to a bat file and put something in the command prompt but it didn't seem to work.
Will these be uploaded with any degree of regularity? or at random times?

also you say "upload to my server"

What server? what's it running and what type of server is it? and how exactly do users upload to it?
This is sounding all so 'Wiki-leaky' LOL
LOL, I don't think Julian Assange would be asking a question like this, he's a very knowledgable programmer and ex hacker.
LOL Could be the side-kick of his side-kick ;-)
Question Author
They will be uploaded at random times depending on when people do it. They are getting sent to the server that holds my website. i just need to know if there is a way in which the files can rename themselves when they arrive at my server e.g. file1, file2 etc or with the date and time otherswise the server will think it is the same file and overwrite the one already there so i will not see all the files sent.

Or if not, if i can do something which forwards the files received straight to my email address then i wouldnt have to rename them.

1 to 10 of 10rss feed

Do you know the answer?

Auto Renaming Files

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.