I am writing a script to copy file from a ftp server to local.i am able to use cmd command to download file etc. My only problem now is copying file to destination.
I want copy file based on month.If the current month is odd(like jan,mar,may,july…etc) then file should copy to D:\ if the month is even(like feb,apr etc..) the file should be copied to E:\ How can i do this by using cmd command script.I think i should get current date and extract month and do it on the basis of month.But how can i do it?
I am writing a script to copy file from a ftp server to local.i
Share
1 Answer