Hello,
I am writing a simple batch file to run on an XP SP2 environment.
What I'm trying to do is:
Go through a folder's subfolders and rename the files inside the various folders to a unique name, then move all the files to one folder to be ftp'd off to another server.
The problem is, the program that creates these files/folders has a structure like this:
<root folder>
UNI00001
uni00001.tif
uni00001.cfg
uni00001.csv
UNI00002
uni00001.tif
uni00002.tif
uni00003.tif
uni00002.cfg
uni00002.csv
UNI00003
uni00001.tif
uni00002.tif
uni00003.tif
uni00003.cfg
uni00003.csv
I'm sort of spinning my wheels when it comes to getting this thing down to the syntax. The pseudo-code I have written out based on my research goes something like:
traverse the directory structure (for loop?)
append a date/time stamp before the extension of all the files (I looked over the guide on this and might have an idea)
move all renamed files to some directory X (the move/copy command)
ftp the files to another server (via the ftp program, still working out the details there)
I mostly need help with framing up loops to run the various commands for renaming and moving. I have searched the forums and read some threads but couldn't really find anything. Thanks in advance for any replies and I hope I gave you enough information.
Steven