locked
script copy files from a folder to other folder - filename condition RRS feed

  • Question

  • Hello guys,

    I need to your help how to create a script which will be copy all files beginning with resultsYYYYYMMDD* from a folder A to other folder (which must be created automatically by the filenames) 

    For example:

    C:\folder_A

    results20150101aaaa.xls

    results20150102bbbb.xls

    results20150103aaaa.xls

    results20150201aaaa.xls

    results20150301aaaa.xls......

    I need to copy all files beginning with results201501 to a new created folder named 201501

    and files beginning with results201502 to a new created folder named 201502 etc.

    Any idea?

    Thanks a lot!

      

    • Moved by Bill_Stewart Wednesday, September 9, 2015 7:43 PM This is not "scripts on demand"
    Friday, July 31, 2015 8:50 PM

Answers

All replies