You are not logged in.
Pages: 1
I just wanted to start off by saying this program is amazing! I just needed a little help on how to do this, and wondering if someone can give me a hand.
I need to rename files with the following conditions
make everything uppercase before the _ (underscore)
First_Line01
First_Line02
Thanks for the help
Offline
I think I got it! I haven't done pascal in forever and after a bit of searching I figured it out
var
SplittedFileName: TStringsArray;
begin
SplittedFileName := WideSplitString(WideExtractBaseName(FileName), '_');
if Length(SplittedFileName) = 2 then
FileName := WideUpperCase(SplittedFileName[0]) + '_' + SplittedFileName[1] + WideExtractFileExt(FileName);
end.
Offline
Welcome. Well done :thumpsup:
I hope you will keep an eye at this forum to help others with scripting too
For others, for an how to use read > ReNamer Wiki PascalScript (click)
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Pages: 1