Search found 6 matches
- Tue Mar 14, 2017 3:52 am
- Forum: Beginners
- Topic: Copyfile and Movefile don't work
- Replies: 4
- Views: 5523
Re: Copyfile and Movefile don't work
Thank you so much, it work !! :D :D :D Right, I see your issue. You are missing the assignment character for your if's (>) and resulting in true statement every time.. Change your if statement from this: If{length("%dd%")<2} Let>dd=0%dd% Endif If{length("%mm%")<2} Let>mm=0%mm% Endif To this: If>{len...
- Tue Mar 14, 2017 1:23 am
- Forum: Beginners
- Topic: Copyfile and Movefile don't work
- Replies: 4
- Views: 5523
Re: Copyfile and Movefile don't work
Hi, thank you for reminding to change the path to server But I still have some trouble with get the filename I use MessageModal to check the date that macro return As an example, it return "wrf20170301318.nc" as result, but the filename I want just "wrf2017031318.nc" I've try to fix the code to If{l...
- Sun Mar 12, 2017 12:08 am
- Forum: Beginners
- Topic: Copyfile and Movefile don't work
- Replies: 4
- Views: 5523
Copyfile and Movefile don't work
Hi, I posted question few days ago 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 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...
- Tue Mar 07, 2017 2:20 am
- Forum: Beginners
- Topic: How to move batch files ?
- Replies: 3
- Views: 4380
Re: How to move batch files ?
Hello, It's me again I've some problem with copy and move the file with yesterday's date I follow the "Using Dates & Variables" https://www.mjtnet.com/blog/2006/01/23/using-dates-variables/ I set up the MACRO then, but I got error code 1032 VBSTART VBEND VBEval>DateAdd(ādā,-1,Date),yesterday VBEval>...
- Mon Mar 06, 2017 9:25 am
- Forum: Beginners
- Topic: How to move batch files ?
- Replies: 3
- Views: 4380
Re: How to move batch files ?
Hello Marcus Tettmar
Sorry for replying so late
I've solve my problem by using
Year>the_year
Month>the_month
Day>the_day
MoveFile>filename,destination
Thank you for your helping
Best Wishes
Sorry for replying so late
I've solve my problem by using
Year>the_year
Month>the_month
Day>the_day
MoveFile>filename,destination
Thank you for your helping
Best Wishes
- Tue Feb 21, 2017 1:02 pm
- Forum: Beginners
- Topic: How to move batch files ?
- Replies: 3
- Views: 4380
How to move batch files ?
Hi, I just start to use Macro Scheduler
I have some file name by YYYYMMDD.NC
These file create everyday
That mean, I have file as 20170221.nc, 20170222.nc, 20170223.nc etc.
How can I use macro to move these file to another folder ?
Thanks Help
I have some file name by YYYYMMDD.NC
These file create everyday
That mean, I have file as 20170221.nc, 20170222.nc, 20170223.nc etc.
How can I use macro to move these file to another folder ?
Thanks Help