Hi
but the cats
however
please, I wonder if is there a way to find (in a batch procedure) all the files in the current folder that have the comma ","
e.g. "Renewi Tour 5a tappa, 27 aug 2023.mp4"
and automatically rename that files without the comma?
the batch should find all the file in a folder that contain "," comma in path e remove the comma from the filename.
If possible also multiple removing, comma and special characters like "#" or "*"
thanks
+ Reply to Thread
Results 1 to 4 of 4
-
Last edited by marcorocchini; 9th Sep 2023 at 16:14.
-
Why bat file? What about using a software designed for that particular kind of tasks?
What about a better script language, like vbs, Autohotkey, phyton, etc ? -
I always use Bulk Renamer for that kind of task.
https://www.bulkrenameutility.co.uk/ -
If possible also multiple removing, comma and special characters like "#" or "*"
Code:@echo off for %%i in (*.mp4) do ( set file_name=%%~ni call :main ) goto program_complete :main echo "%file_name%" | sed -e "s#[, #]#_#g" | sed -e "s#.$##" | winclip -c for /f %%e in ('winclip -p') do set f_name2=%%e ren "%file_name%".mp4 "%f_name2%".mp4 goto :eof :program_complete echo. echo *** Program Complete *** echo.
Similar Threads
-
How to export frames from a video with timecode in filenames (ffmpeg)?
By eliio in forum Newbie / General discussionsReplies: 0Last Post: 13th Jun 2022, 11:25 -
Batch method to find images that contains only text !
By zyck in forum SubtitleReplies: 7Last Post: 19th Oct 2021, 21:52 -
comskip batch
By lj01 in forum Newbie / General discussionsReplies: 8Last Post: 29th Oct 2020, 15:25 -
Where to find this - help please
By vidblue in forum Newbie / General discussionsReplies: 1Last Post: 21st Jul 2019, 01:57 -
how to use ffmpeg in batch?
By ujang in forum ProgrammingReplies: 14Last Post: 13th Apr 2019, 19:21