|
Answer» Hi,
I am completely new to batch programming and have quite a COMPLICATED scenario that I need to solve
Step 1 do a local directory list and pipe the output to a file with a filename of dirlist(todays date).txt
Step 2 for each entry in dirList(todays date).txt change the name of each file with and extension of .tab to have an extension of .TFR
Step 3 for each entry in dirList(todays date).txt FTP the file to a remote server
Step 4 rename the each file transfered to the remote server to have a .tab extension NB the file name is changed to .tfr because the remote directory is constantly poled for files with a .tab extension and I DONT want partially transfered files to be detected
Step 5 for each entry in the file dirList(todaysDate).txt move the local copy of the file to an archive directory
I appreciate that this is quite a COMPLEX task but any help that anyone can offer would be much appreciated.
Thanks in advance,
Phil.
|