小工具整理
This commit is contained in:
commit
1011eb44e1
566 files changed
+267142
No files matched your search
@@ -0,0 +1,17 @@
|
||||
{ This script moves a portion of a filename }
|
||||
|
||||
const
|
||||
MOVE_START = 5; // beginning of the movable portion
|
||||
MOVE_LENGTH = 3; // length of the movable portion
|
||||
MOVE_TO = 3; // new position for the portion
|
||||
|
||||
var
|
||||
BaseName, Portion: WideString;
|
||||
|
||||
begin
|
||||
BaseName := WideExtractBaseName(FileName);
|
||||
Portion := WideCopy(BaseName, MOVE_START, MOVE_LENGTH);
|
||||
WideDelete(BaseName, MOVE_START, MOVE_LENGTH);
|
||||
WideInsert(Portion, BaseName, MOVE_TO);
|
||||
FileName := BaseName + WideExtractFileExt(FileName);
|
||||
end.
|
||||
Reference in new issue
Block a user