Skip to main content
deleted 21 characters in body; edited tags; edited title
Source Link
slhck
  • 230.2k
  • 71
  • 621
  • 603

Window Windows bulk renaming/replace the string

I'm trying to rename the file from one format to other format.. 500+ files. Currently with notepad++ manually do it with individual file name. Is there any command or scripts is there, Please let me know, much appreciate all your help on this. Thanks

Files

DB2.V12.RPT(DDG1RP01)   
DB2.V12.RPT(DDG1RP02)   
DB2.V12.RPT(DDG1RP03)   
DB2.V12.RPT(DDG1RP04)   

want to rename into

ren DB2.V12.RPT(DDG1RP01)      DDG1RP01.txt
ren DB2.V12.RPT(DDG1RP02)      DDG1RP02.txt
ren DB2.V12.RPT(DDG1RP03)      DDG1RP03.txt
ren DB2.V12.RPT(DDG1RP04)      DDG1RP04.txt

that is, remove these "DB2.V12.RPT(" and ")' and rename into .txt file.

Window bulk renaming/replace the string

I'm trying to rename the file from one format to other format.. 500+ files. Currently with notepad++ manually do it with individual file name. Is there any command or scripts is there, Please let me know, much appreciate all your help on this. Thanks

Files

DB2.V12.RPT(DDG1RP01)   
DB2.V12.RPT(DDG1RP02)   
DB2.V12.RPT(DDG1RP03)   
DB2.V12.RPT(DDG1RP04)   

want to rename into

ren DB2.V12.RPT(DDG1RP01)      DDG1RP01.txt
ren DB2.V12.RPT(DDG1RP02)      DDG1RP02.txt
ren DB2.V12.RPT(DDG1RP03)      DDG1RP03.txt
ren DB2.V12.RPT(DDG1RP04)      DDG1RP04.txt

that is, remove these "DB2.V12.RPT(" and ")' and rename into .txt file.

Windows bulk renaming/replace the string

I'm trying to rename the file from one format to other format.. 500+ files. Currently with notepad++ manually do it with individual file name. Is there any command or scripts is there, Please let me know, much appreciate all your help on this.

DB2.V12.RPT(DDG1RP01)   
DB2.V12.RPT(DDG1RP02)   
DB2.V12.RPT(DDG1RP03)   
DB2.V12.RPT(DDG1RP04)   

want to rename into

ren DB2.V12.RPT(DDG1RP01)      DDG1RP01.txt
ren DB2.V12.RPT(DDG1RP02)      DDG1RP02.txt
ren DB2.V12.RPT(DDG1RP03)      DDG1RP03.txt
ren DB2.V12.RPT(DDG1RP04)      DDG1RP04.txt

that is, remove these "DB2.V12.RPT(" and ")' and rename into .txt file.

Improved formatting for legibility.
Source Link
AFH
  • 17.7k
  • 3
  • 34
  • 48

I'm trying to rename the file from one format to other format.. 500+ files. Currently with notepad++ manually do it with individual file name. Is there any command or scripts is there, Please let me know, much appreciate all your help on this. Thanks

Files

DB2.V12.RPT(DDG1RP01)
DB2.V12.RPT(DDG1RP02)
DB2.V12.RPT(DDG1RP03)
DB2.V12.RPT(DDG1RP04)

DB2.V12.RPT(DDG1RP01)   
DB2.V12.RPT(DDG1RP02)   
DB2.V12.RPT(DDG1RP03)   
DB2.V12.RPT(DDG1RP04)   

want to rename into

ren DB2.V12.RPT(DDG1RP01) DDG1RP01.txt ren DB2.V12.RPT(DDG1RP02) DDG1RP02.txt ren DB2.V12.RPT(DDG1RP03) DDG1RP03.txt ren DB2.V12.RPT(DDG1RP04) DDG1RP04.txt

ren DB2.V12.RPT(DDG1RP01)      DDG1RP01.txt
ren DB2.V12.RPT(DDG1RP02)      DDG1RP02.txt
ren DB2.V12.RPT(DDG1RP03)      DDG1RP03.txt
ren DB2.V12.RPT(DDG1RP04)      DDG1RP04.txt

that is, remove these "DB2.V12.RPT(" and ")' and rename into .txt file.

I'm trying to rename the file from one format to other format.. 500+ files. Currently with notepad++ manually do it with individual file name. Is there any command or scripts is there, Please let me know, much appreciate all your help on this. Thanks

Files

DB2.V12.RPT(DDG1RP01)
DB2.V12.RPT(DDG1RP02)
DB2.V12.RPT(DDG1RP03)
DB2.V12.RPT(DDG1RP04)

want to rename into

ren DB2.V12.RPT(DDG1RP01) DDG1RP01.txt ren DB2.V12.RPT(DDG1RP02) DDG1RP02.txt ren DB2.V12.RPT(DDG1RP03) DDG1RP03.txt ren DB2.V12.RPT(DDG1RP04) DDG1RP04.txt

that is, remove these "DB2.V12.RPT(" and ")' and rename into .txt file.

I'm trying to rename the file from one format to other format.. 500+ files. Currently with notepad++ manually do it with individual file name. Is there any command or scripts is there, Please let me know, much appreciate all your help on this. Thanks

Files

DB2.V12.RPT(DDG1RP01)   
DB2.V12.RPT(DDG1RP02)   
DB2.V12.RPT(DDG1RP03)   
DB2.V12.RPT(DDG1RP04)   

want to rename into

ren DB2.V12.RPT(DDG1RP01)      DDG1RP01.txt
ren DB2.V12.RPT(DDG1RP02)      DDG1RP02.txt
ren DB2.V12.RPT(DDG1RP03)      DDG1RP03.txt
ren DB2.V12.RPT(DDG1RP04)      DDG1RP04.txt

that is, remove these "DB2.V12.RPT(" and ")' and rename into .txt file.

Source Link

Window bulk renaming/replace the string

I'm trying to rename the file from one format to other format.. 500+ files. Currently with notepad++ manually do it with individual file name. Is there any command or scripts is there, Please let me know, much appreciate all your help on this. Thanks

Files

DB2.V12.RPT(DDG1RP01)
DB2.V12.RPT(DDG1RP02)
DB2.V12.RPT(DDG1RP03)
DB2.V12.RPT(DDG1RP04)

want to rename into

ren DB2.V12.RPT(DDG1RP01) DDG1RP01.txt ren DB2.V12.RPT(DDG1RP02) DDG1RP02.txt ren DB2.V12.RPT(DDG1RP03) DDG1RP03.txt ren DB2.V12.RPT(DDG1RP04) DDG1RP04.txt

that is, remove these "DB2.V12.RPT(" and ")' and rename into .txt file.