You are not logged in.
Pages: 1
Please help me
Folder\file
R0000af4d\C00011b1e.jpg
R0000af4e\C00011b29.jpg
R0000af4f\C00011b1d.jpg
R0000af43\C00011b3d.jpg
R0000af44\C00011b23.jpg
R0000af45\C00011b3d.jpg
...
first be removed from the title R,C
second step conversion name of hexadecimal to decimal (Pascal script)
Hex => Dec
0000af4d\00011b1e.jpg => 44877\72478.jpg
Offline
No problem, below is the script to convert Hex in the filename into an Integer:
begin
FileName := IntToStr(HexToInt(WideStripExtension(FileName))) +
WideExtractFileExt(FileName);
end.
Note: Don't forget to remove "R" and "C" at the start with a Replace rule or similar, before applying this script.
Offline
thanks :D:cool:
Offline
and for the opposite case
44877\72478.jpg => 0000af4d\00011b1e.jpg
thanks
Offline
For the reverse operation, integer to hex, use this:
const
DIGITS = 8;
begin
FileName := IntToHex(StrToInt(WideStripExtension(FileName)), DIGITS) +
WideExtractFileExt(FileName);
end.
Offline
this script rename names to upper case
44877\72478.jpg => 0000AF4D\00011B1E.jpg
I know the rule is to lowercase but I would need it in pascal
44877\72478.jpg => 0000af4d\00011b1e.jpg
thanks
Offline
lowercase in pascal
44877\72478.jpg => 0000af4d\00011b1e.jpg
Just add another line like:
FileName := WideLowerCase( FileName );
just above of the line with the "end."
Read more at
http://www.den4b.com/wiki/ReNamer:Pasca … g_Handling
http://www.den4b.com/wiki/ReNamer:Pascal_Script
.
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