Good Morning,
I am using the following .Bat file to transfer modified Wxsim files to a location that Fling will upload them to my website. This works. The situation is, the run of Wxsim can vary as much as 30 minutes so to be safe, I must put the transfer way out. My goal is to modify the .Bat file such that it can be scheduled to run every 5 minutes from the time the modified files could first be available to the time they definitely should be available and, if the files have not been updated the first time through, the .Bat file will not affect the files until they are updated and can be copied.
EXISTING .BAT File
"Rem This Bat file is to be used to transfer forecast files,
lastret.txt and plaintext.txt from wxsim directory to vws/root
directory to be uploaded to internet via Fling.
@echo off
C:
cd "C:\wxsim"
copy lastret.txt "C:\vws\root" /Y
copy plaintext.txt "C:\vws\root" /Y
end"
*****************************************************
PROPOSED .BAT File
"Rem This Bat file is to be used to transfer forecast files,
lastret.txt and plaintext.txt from wxsim directory to vws/root
directory to be uploaded to internet via Fling.
@echo off
C:
cd "C:\wxsim"
Xcopy lastret.txt "C:\vws\root" /Y /M
Xcopy plaintext.txt "C:\vws\root" /Y /M
end"
TIA
George