At the time, thought I've solve the problem
But few days later, script don't work, I can't figure out what's going wrong
Code: Select all
GetDate>today
DateAdd>today,D,-1,yesterday
DatePart>yesterday,Y,yyyy
DatePart>yesterday,M,mm
DatePart>yesterday,D,dd
//year_part is 4 digits, so we want only last 2
//MidStr>year_part,3,2,year_bits
If{length("%dd%")<2}
Let>dd=0%dd%
Endif
If{length("%mm%")<2}
Let>mm=0%mm%
Endif
CopyFile>Y:\CWB\WRF\NC\wrf%yyyy%%mm%%dd%00.nc,D:\OceansMap20\UserEDS\NKMU\WRF\wrf%yyyy%%mm%%dd%00.nc
CopyFile>Y:\CWB\WRF\NC\wrf%yyyy%%mm%%dd%06.nc,D:\OceansMap20\UserEDS\NKMU\WRF\wrf%yyyy%%mm%%dd%06.nc
CopyFile>Y:\CWB\WRF\NC\wrf%yyyy%%mm%%dd%12.nc,D:\OceansMap20\UserEDS\NKMU\WRF\wrf%yyyy%%mm%%dd%12.nc
CopyFile>Y:\CWB\WRF\NC\wrf%yyyy%%mm%%dd%18.nc,D:\OceansMap20\UserEDS\NKMU\WRF\wrf%yyyy%%mm%%dd%18.nc
MoveFile>Y:\CWB\WRF\NC\wrf%yyyy%%mm%%dd%00.nc,Y:\CWB\WRF\NC\%yyyy%%mm%
MoveFile>Y:\CWB\WRF\NC\wrf%yyyy%%mm%%dd%06.nc,Y:\CWB\WRF\NC\%yyyy%%mm%
MoveFile>Y:\CWB\WRF\NC\wrf%yyyy%%mm%%dd%12.nc,Y:\CWB\WRF\NC\%yyyy%%mm%
MoveFile>Y:\CWB\WRF\NC\wrf%yyyy%%mm%%dd%18.nc,Y:\CWB\WRF\NC\%yyyy%%mm%
Year>Y
Month>M
Day>D
CopyFile>Y:\CWB\WRF\NC\wrf%Y%%M%%D%00.nc,D:\OceansMap20\UserEDS\NKMU\WRF\wrf%Y%%M%%D%00.nc
CopyFile>Y:\CWB\WRF\NC\wrf%Y%%M%%D%06.nc,D:\OceansMap20\UserEDS\NKMU\WRF\wrf%Y%%M%%D%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