Oct 25

Hello all you programmers/coders out there.  I have a question if anyone can answer.  To put things briefly….

I’m moving servers/hosts soon and putting in some load balancing for my downloads site by moving the downloads to a couple mirrored download servers.  This is fine except for how my downloads script works.  Currently, when you add files, it copies them to the main download folder and then renames them to a certain “masked” name.  It then stores the masked name and the real name of the files in the database, so that when a user downloads a file, it renames it to the real name on the fly.  So the local file may have a masked name of “28o24309usf0h2kj223.rwd” or “thisisafile1.rwd” and the actual real file name is “thisisafile1.exe”.

Because of the new servers and load-balancing stuff, I need to be able to have an automated method of parsing through a list which has the masked file name and the real file name respectively and have it search through the actual files in the folder and rename them to their real file name on the fly.  I’ve done some web programming and SQL stuff, but I haven’t really messed with manipulating a lot of files on the fly like that before.  Does anyone know of a program that could do this for me?  If not, is anyone willing to create some sort of batch file or vb script or something that would do this for me?  I have about 260 files to rename and I’d be willing to pay you for your time.

I can give more details if needed as long as you just contact me.  Thanks.  :-)