windows - Batch for adding suffix of several files except of batchfiles -
i found solution renaming files. did not work, added suffix after file ending like
@echo off setlocal enabledelayedexpansion %%a in (*.*) ( ren "%%a" "%%a tenor 1" ) pause&exit
my problem: have several filetypes in folder like:
song1.mp3 song2.mp3 text1.txt text2.txt document1.pdf document2.pdf add_tenor_1.bat add_tenor_2.bat replaceblankwithunderline.bat
and on. want add example files except batch files suffix "* tenor 1".
song1 tenor 1.mp3 song2 tenor 1.mp3 text1 tenor 1.txt text2 tenor 1.txt document1 tenor 1.pdf document2 tenor 1.pdf add_tenor_1.bat add_tenor_2.bat replaceblankwithunderline.bat
is possible use *.*
in condition exception (for .bat) ? how code batch file like?
another thing add suffix .txt , .pdf files example. work in 1 routine or need 1 .txt , 1 .pdf?
song1.mp3 song2.mp3 text1 tenor 1.txt text2 tenor 1.txt document1 tenor 1.pdf document2 tenor 1.pdf add_tenor_1.bat add_tenor_2.bat replaceblankwithunderline.bat
and how code batch file like?
thank lot!
and know there programms renamer. want ad same (not @ same time) quicker press batch instead of opening choosing , renameing porgramm :)
regards chrisdi91
for %%a in (*.*) if /i "%%~xa" neq ".bat" (
meaning "if extension part of filename (~%%xa
) neq (not equal to) '.bat' (/i
means case-insensitive comparison)"
see for /? |more
prompt documentation.
btw - "wanna" not word.
Comments
Post a Comment