Com Process Batch Script

=====DESCRIPTION=====
This script was created to aid FTP Transfers of TrackIQ WPU Data.
Files are compressed with train folder paths and a origin Hash Tag


=====METHOD=====
1) Use the "Trainlist" as a reference to what needs to be transfered. (copy to local DIR)
2) Tidy up the local "Trainlist" to keep the list relevent. (Asistance from DiskPurge's Train Purge List to improve reliablity and performance)
3) For the local copy of "Trainlist", the entries with ".do" file extention, process the train data.
4) The train data is compressed with a #acronym# unique for the site and the Date-time path and put into a transfer folder.
5) Once train data is compressed rename the ".do" extention on the local copy of "Trainlist" to ".done"
6) Wait and repeat.

Replaces Previous Methods;
1) AutoFTP - Downloaded the un-compressed files from each directory and utalised a trainlist to identify the directories to download from
2) Fetch&Process - A Perl Script that required the Site Code to compress the train directory but the files co-existed with the train data and the stored archive path still needed modification


=====FILES;=====
ComProcess.cmd
 - Main Process Utility - For Entering Parameters and calling the Process in a Loop

ProcessWPU.bat
 - Script that Compresses matching files into destination folders. (Now can Autodetect Site name and type)

CreateScheduledTask.bat
 - Creates the Automatic starting of the process on the system (May need to be (right click) "RUN As ADMINISTRATOR")

OLDSite1stRun-Don'tUploadEverythingNow.bat
 - Used for systems that are being upgraded to this new method to indicate that all entries on the trainlist have already been processed and not to transfer them again.

GenerateTrainlist.bat
 - Used for systems that may not have been using a trainlist previously. It generates the Master Trainlist entries for existing data

UpdateTrainlistByComparingTimestamp.bat
 - Used to check if trains have been re-processed and will update the list of transfered trains to match. (i.e. remove entries in local trainlist of source trainlist timestamps are different).



Additional utilities that have evolved from this.

ProcessInterris.bat
1) Create a Daily archive if an Interris feed file
2) Move the Interris file to the Transfer Directory

ProcessServer.bat
1) Detect the latest train folder and builds a trainlist depending on the selected period back
2) Compresses the result files (CSV / TAB) into an archive.

FindTrainsByTime-CompressRAW.bat
1) Locate trains on the WPU with timestamps from a database list
2) compress the RAW data for analysis at TrackIQ (into a transfer folder)

RenTx_Whldets.bat
1) Locates new trains on the WPU
2) transfers the Whldets.mat to Noise Monitor

