Replace old file with new file

后端 未结 3 1234
野性不改
野性不改 2021-01-29 12:19

I am trying to write a script to replace old files content with new files content which is appearing in the following format:

Old file : something.txt
New file : s

3条回答
  •  逝去的感伤
    2021-01-29 12:34

    Invalid question Invalid answer

    source 1

    @echo off
    set FOLDER_PATH=D:\test
    cd /d "%FOLDER_PATH%"
    ren "*.txt.new" "*.txt"
    

    source 2

    @echo off
    set FOLDER_PATH=D:\test
    cd /d "%FOLDER_PATH%"
    ren "*.txt" "*.txt.new"
    

提交回复
热议问题