******************************************************** CExt V40.2 By Chris De Maeyer Sources (C)1994 Blue Heaven Software - All rights reserved Released as GIFTWARE on 16 October 1994 Updated version released on 1 February 1997 ******************************************************** CExt is for the Amiga. No fee is requested to use it, nor anyone can ask anything for it (except for the media). Bare in mind that you may use & distribute these files as long as all files remain included and unchanged. If you keep on using this program, you should reward me by sending some kind of gift (hence the term giftware) to the address specified below. If you want to make a donation, it gives you the right to get the latest version in your mailbox (make sure your donation at least covers the expence of mailing ! And include full address for sending the update). Disclaimer ========== I can't be held responsible for any damage inflicted on your computer system when using the files mentioned herein. However, this tool has been tested by myself and others on correct behaviour. It is your duty as user of this tool to report any strange occurences which evolve from using it. Using it ! ========== CExt is a small Shell-only program and its work should be clear: it renames files in the current directory, either it strips the ext. part, or it replaces the extension with a new one. New in this version: an ext. renumber function ! This for all anim artists out there which need a quick way to renumber their frames. You can set the basename for all frame files (default it will take the first filename [without ext] as its basename). Then, you can give the start frame number (defaults to 0) and an increment (defaults to 1). I know there might be other proggies around, with some more options. But, this program evolved from a sudden need for this utility. At the time I had nothing else to do it with. So, why shouldn't I just write one myself. Anyway, if you want more options... contact me ! As said above, Cext is a Shell-only program, so do not try to use it from Workbench. It uses the standard parser of AmigaDOS. Executing Cext with '??' as a parameter will give the following argument list : USAGE: cext FILE/A, EXT=EXTENTION/K, RENUM/S,BASE=BASENAME/K,SFR=STARTFRAME/K/N, INC=INCREMENT/K/N, QUIET/S Now, a little explanation about the arguments: FILE - here you MUST supply the file or pattern. EXT= - invokes the program in change mode. Meaning: the extensions will be replaces by a new one. RENUM - will process the files in ext. numbering mode. BASE= - to supply a new basename for all frames (optional). Defaults to first filename. SFR= - start numbering from . Defaults to 0. INC= - increment frames with . Defaults to 1. QUIET - no output (for scripts). It is obvious that EXT (change) mode can NOT be mixed with RENUM mode. If neither of these modes is chosen the ext. DELETE mode is selected. An example of how to use Cext is given below: DELETING EXTENTIONS 6>dir cext.c cext.doc test.h test.o test.lnk test.c 6>cext #?.o [test.o] renamed to [test] 6>dir cext.c cext.doc test.h test test.lnk test.c REPLACING EXTENTIONS 6>dir cext.c cext.doc test.h test.o test.lnk test.c 6>cext #?.o ext=object [test.o] renamed to [test.object] 6>dir cext.c cext.doc test.h test.object test.lnk test.c FRAME RENUMBERING (Note: the program will sort the files in ASCII order before processing) 6>dir xyz.025 ytr.67 treg.0001 gfr.89 6>cext #? renum base=myframe quiet 6>dir myframe.0000 myframe.0001 myframe.0002 myframe.0003 6>cext myframe.#? renum sfr=100 inc=2 quiet 6>dir myframe.0100 myframe.0102 myframe.0104 myframe.0106 Remark: if a file already exists with the same name. Cext will report this to you with following message: 'Couldn't rename file'. About Versions & Bugfixes ========================= You can determine your current version by typing 'version cext' in the Shell window. The version number tells you: . in which the kick part tells you what kickstart version I use on my machine, and the number is just a sequential release number. 40.2 - all valid files are buffered and sorted first - added ext. renumbering (options involved BASE, SFR, INC). 40.1 - standard AmigaDOS options - added QUIET option. 37.1 - enhancement: added -c option (UNIX option parsing). 37.0 - initial version (test) delete only. TO DO ===== - dynamic allocation for file buffering functions (now the number of files is limited to 1024)[should be enough for most operations]. The Author ========== If you want to send me bug-reports or comments: Since this is giftware, gifts to following address: BLUE HEAVEN SOFTWARE tav. Chris De Maeyer Norbertijnenstraat 4 B-2040 ANTWERPEN BELGIUM Email: cdemaeyer@mmm.com (only questions, bug reports...) Files in this release ===================== cext cext.doc TTYL.