locked
Change name of new files RRS feed

  • Question

  • Hello,



    I need to make script who change name of new files.

    I have folder where I make files and I want add to this files _date.

    For example:

    Today I make files:

    file1,file2,file3

    Script must rename this files and add to it date: file1_02062020,file2_02062020,file3_02062020

    Next day I make new files: file1,file2,file3 and script renames it for: file1_03062020,file2_03062020,file3_03062020

    And more at other day.

    Tuesday, June 2, 2020 10:34 AM

All replies

  • Just do an internet search. There are plenty of examples.

    https://www.bing.com/search?q=powershell+rename+file+with+date&FORM=QSRE1

     
    • Proposed as answer by Vector BCO Tuesday, June 2, 2020 8:02 PM
    Tuesday, June 2, 2020 12:57 PM
  • Hi,
    Was your issue resolved? 
    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
    If no, please reply and tell us the current situation in order to provide further help.
    Best Regards,
    Yang Yang

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, July 3, 2020 3:27 AM