I am looking for a script to run under Windows XP/Server 2003 which will copy and move files to a location determined by their name and alter their file extension.
Basically It has to be triggered by a .bat file but I can call a VBScript etc from within the batch
Two variables are:
These are as follows in example:
12345678 and 56789101 are the %customer%, these are always the first characters before the first underscore
ordrsp is the %messagetype% - these are always the 6 characters after the first _
Files should end up with the . changed to _ and having .xml at the end
Copy the files to c:\testing\backup\%custome
Move the files to c:\testing\outbound\%custo
Not essential but if the folders with the values behind %customer% and %messagetype% did not exist then it would be useful the script would create them.
ps. To get the examples uploaded I had to rename them .bmp as EE wont allow the extension types .128475 etc