home *** CD-ROM | disk | FTP | other *** search
- {!%A:1|%A|(%Y) %L}
-
- // the first line contains the folder structure and is dynamically used upon script execution
- // it is optional, if not defined the standard 'sub folder details' will be used
-
- {
- the system functions can be used here as well
-
- //inits things and optionally calculates the count of files per created folder ( a bit slower )
- procedure re_Init( const bGetCount: boolean );
-
- function re_Skip: boolean; // moves to the next file if any
- function re_getLevel( const iLevel: integer ): string; //get the level value
- procedure re_setLevel( const iLevel: integer; const sValue: string ); //set the level value
-
- procedure re_removeLevel( const iLevel: integer ); // removes a level
- procedure re_addLevel( const sValue: string ); // adds a level dynamically
-
- }
-
- program Simple_the_removal;
-
-
- var
- sTmp: string;
-
- begin
-
- re_Init( false );
-
- repeat
-
- sTmp := re_getLevel( 2 );
- if UpperCase( Copy( sTmp, 1, 4 ) ) = 'THE ' then begin // remove 'the'
- re_setLevel( 1, Copy( sTmp, 5, 1 ) );
- re_setLevel( 2, Copy( sTmp, 5, 9999 ) );
- end;
-
- until not re_Skip;
-
-
- end.
-