Renaming Wav files
Closed
kardiva
-
31 Mar 2010 à 07:34
Richard.Williams Posts 25 Registration date Saturday 7 November 2009 Status Member Last seen 18 July 2012 - 26 Apr 2010 à 16:05
Richard.Williams Posts 25 Registration date Saturday 7 November 2009 Status Member Last seen 18 July 2012 - 26 Apr 2010 à 16:05
Related:
- Renaming Wav files
- Upload files to mediafire - Guide
- How to open .swf files - Guide
- Gmail cannot attach files - Guide
- How to open msi files on android - Guide
- Can jpg files have viruses - Guide
4 responses
Richard.Williams
Posts
25
Registration date
Saturday 7 November 2009
Status
Member
Last seen
18 July 2012
14
26 Apr 2010 à 16:05
26 Apr 2010 à 16:05
Try this biterscripting script.
If the _ were to word separator, you want the 8th, 9th, 3rd and 7th word.
Copy and paste script code in file C:/Scripts/RenameWav.txt, start biterscripting, use this command.
It will rename all .WAV files under folder "C:/test" accordingly.
I don't think this script is perfect, so please test it first on a test directory. I have not been able to test it.
If the _ were to word separator, you want the 8th, 9th, 3rd and 7th word.
# Script RenameWav.txt
var str dir, list, path, name, newname
var str w8, w9, w3, w7
set $wsep="_" # Set the word separator
cd $dir ; lf -r -n "*.WAV" > $list
while ($list <> "")
do
lex "1" $list > $path ; stex -p "^/^l[" $path > $name
wex -p "8" $name > $w8
wex -p "9" $name > $w9
wex -p "3" $name > $w3
wex -p "7" $name > $w7
set $newname = $w8+"_"+$w9+"_"+$w3+"_"+$w7+".WAV"
system rename ("\""+$path+"\"") ("\""+$newname+"\"")
done
Copy and paste script code in file C:/Scripts/RenameWav.txt, start biterscripting, use this command.
script "C:/Scripts/RenameWav.txt" dir("C:/test")
It will rename all .WAV files under folder "C:/test" accordingly.
I don't think this script is perfect, so please test it first on a test directory. I have not been able to test it.
I have more than 500 files to named as such on a daily basis "F2" will will be time consuming.
Kardiva:-)
Kardiva:-)
closeup22
Posts
8922
Registration date
Friday 15 May 2009
Status
Member
Last seen
7 October 2010
2,099
31 Mar 2010 à 08:00
31 Mar 2010 à 08:00
Hi there,
select the file,then press F2 to rename or right click on it and select rename and enter the mentioned name.
Thanks
select the file,then press F2 to rename or right click on it and select rename and enter the mentioned name.
Thanks
@echo off
for %%i in (*.Wav) do (set fName=%%i) & call :10
goto :eof
:10
@echo off
for %%i in (*.Wav) do (set a=%fname:~31,2%) & call :20
:20
set b=%fname:~47,2%
set c=%fname:~50,11%
set d=%fname:~62,12%
ren %fName% %c%.%d%_%a%_%b%.wav
pause
This returns the file name as "29-Mar-2010.10.29.32.400_01_46.wav"
whet Do i do if i want to convaer the mar to 03
Kardiva:-)
for %%i in (*.Wav) do (set fName=%%i) & call :10
goto :eof
:10
@echo off
for %%i in (*.Wav) do (set a=%fname:~31,2%) & call :20
:20
set b=%fname:~47,2%
set c=%fname:~50,11%
set d=%fname:~62,12%
ren %fName% %c%.%d%_%a%_%b%.wav
pause
This returns the file name as "29-Mar-2010.10.29.32.400_01_46.wav"
whet Do i do if i want to convaer the mar to 03
Kardiva:-)