locked
cmd script to copy files based on month RRS feed

  • General discussion

  • 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?

    • Changed type tracycai Tuesday, January 8, 2013 3:37 AM
    Thursday, January 3, 2013 1:05 PM

All replies

  • Hi,

    For script related question, I suggest posting a new question in the Script Forum for further discussion.

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


    Tracy Cai

    TechNet Community Support

    Friday, January 4, 2013 9:16 AM