Search found 2 matches

by embassy81
03 Dec 2019 09:06
Forum: DOS Batch Forum
Topic: Batch DOS - Replace "part of" filenames
Replies: 2
Views: 3223

Re: Batch DOS - Replace "part of" filenames

Really thx!

at the end i use this method

Code: Select all

for %%a in (*_*) do (
  set file_completo=%%a
  set file_nome=%%~na
  set name=!file_nome:~0,-6!
  ren "!file_completo!" "!name!.pdf"
)
by embassy81
29 Nov 2019 10:03
Forum: DOS Batch Forum
Topic: Batch DOS - Replace "part of" filenames
Replies: 2
Views: 3223

Batch DOS - Replace "part of" filenames

Hi guys, sorry me if there is something similar, but i cant find something to help me. i have some file named: 11223344_0123_.pdf 11223355_1234_.pdf (or if can be more simply i can generate name as 11223344_0123.pdf, whitout last underscore) i need rename all files without chars beetween underscore,...