|
Answer» Hi all,
I currently have a batch file that copies my new music from a folder on my desktop...., into my other computers..., which works great. I have a LOT of my old stuffs filenames labelled in uppercase, and would like to continue to keep everything new entered in uppercase. At the moment I have to CHANGE everything manually.
Is there a piece of command that would automatically change the filenames in the folder to all uppercase.
Thanks in advance.
Current CODE in file:
copy G:\music\*.wav \\Audio\share\Erics_audio\musicbackup\
move G:\music\*.wav \\Audio\share\Erics_audio2\main\
del G:\music\*.pkSorry me again,
I should have said a piece of command that would convert any filenames to uppercase....., just before they are copied to the other computers.
thanksUnfortunatey I couldn't find anything like this I could USE in batch either.
I downloaded a program called multifilerenamer.exe from Sourceforge.net.
It worked out better than I had expected, but I would still like a case changing batch script to downshift my stuff.
Code: [Select]@echo off setlocal enabledelayedexpansion set U=ABCDEFGHIJKLMNOPQRSTUVWXYZ set l=abcdefghijklmnopqrstuvwxyz for /f "tokens=*" %%a in ('dir /b /a-d *.txt') do ( set filename=%%a for /l %%b in (0,1,25) do call :u !l:~%%b,1! !u:~%%b,1! echo Renaming %%a rem rename "%%a" "!filename!" goto :eof :u set "filename=!filename:%1=%2!")
|