Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: batch script to copy and rename a folder that had contents in it  (Read 564 times)

0 Members and 1 Guest are viewing this topic.

daillest319

    Topic Starter


    Rookie

    • Experience: Beginner
    • OS: Unknown
    i need help with batch script to copy and rename a folder thats has files in it with today date.


    i use this code for my file but its not working for the folder
    Code: [Select]
    for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "\\nasdata02\finance01\DATA\SMS_MC\Projects\_Databases\Archive\S\Section 1011\Monthly 1011 Olie Process\Template\EWM10AI*.txt" *EWM10AI1-PBSR-%%e%%f%%g.txt


    Squashman



      Apprentice
    • Thanked: 44
      • Experience: Experienced
      • OS: Other
      Re: batch script to copy and rename a folder that had contents in it
      « Reply #1 on: May 04, 2012, 04:42:33 PM »
      Could you provide an example of what your input files look like and what you want the output to look like. I am not following your logic at all.