home *** CD-ROM | disk | FTP | other *** search
-
- For.doc
-
-
-
- "For" work only under KS2.0+
-
- "For" is a foreach command. For each object (file/dir) which pattern
- (name pattern or FileType pattern) "For" execute the specified command
- replacing all %% (maximum 5) by the name of the current file.
-
- Eg:
-
- For *.doc DO copy %% to DOC:
-
- Search all file ine current dir which match to *.doc and execute
- the command: "copy file.doc to DOC:"
-
- For SYS: Type "%*(Icon)" DO Protect %% -d
-
- Look in the SYS: and subdirs for file which was recognised by
- whatis.library as Icon (or subtype of Icon) and execute the command:
- "Protect iconfile -d"
-
- For also parse an environement varable called "For.DefOpts" Before
- your CLI args.
-
- For V2.0
- Usage: For <Pattern> [FILES <MATCH|YES|NO>] [DIRS <MATCH|YES|NO>]
- [Since <Date>] [Before <Date>]
- [MinSize <Number>] [ MaxSize <Number>]
- [PosProtect < L|C|H|S|P|A|R|W|E|D>] [ NegProtect <L|C|H|S|P|A|R|W|E|D>]
- [Type <FileType0...FileType9|%=ONLY|*=SUB|!=EXLC>]
- [ALL] [ASYNC]
- [READSIZE] [SHOWBYTE] [DEEPWHATIS] [SHOWFILETYPE]
- [DO <Command [args] [,Command [args] [,...]]>]
-
- Pattern $Pat1 $Pat2 $Pat255: any number of pattern like
- *.doc
- WB:*.info More MuchMore *.doc
-
- FILES:
- MATCH: look if file match to current pattern
- YES: include all file encounter
- NO: exclude all file encounter
- default YES
- DIRS:
- MATCH: look if dir match to current pattern
- YES: include all dir encounter
- NO: exclude all dir encounter
- default YES
-
- Since $date: include only file older than $date
-
- Before $date: include only file newer than $date
-
- MinSise $size: include only file bigger than $size
-
- MaxSise $size: include only file tyner than $size
-
- bit C and L are special bit (not AmigaDOS)
- C means file have a comment
- L means file is a link
- PosProtect $protectbit: only include file which have this bits like
- ae
- srwed
-
- NegProtect $protectbit: only include file which have'nt this bits like
- a
- hs
-
- Type filetype_spec_list:
-
- for Template reason you must enclose your filetype_spec_list by '"'
- and each FileType name must be enclosed by open/close brace ()
- FileType is one of the FileType of whatis.library this is not usable if
- have not instaled the whatis.library in your system.
-
- % means only this FileType
- ! means exlude this FileType
- # means with his sub type
-
- "!#(Exe)" exlude all file which was an "Exe" or one of its subtype
- like "PP40 Exe"
- "%(Icn Disk),(Icn Grbg)" only include "Icn Disk" and "Icn Grbg"
-
- ALL: enter in all directory encounter
-
- ASYNC: this lounch your command asyncrously
- default FALSE
-
- READSIZE $size: $size "For" read to recongnise FileType
-
- SHOWBYTE $numbyte: byte to display, only meanfull when SHOWFILETYPE is set
-
- DEEP: Choose Whatis level of Whatis.library, see whatis.library for more
- details.
- 0 = LightWhatIs (Slow FileType Recognition, but do better result)
- 1 = DeepWhatIs
- Default is LightWhatIs (0)
-
- SHOWFILETYPE: show the FileType spec.
-
- DO: your command to execute, replacing all %% (upto 5) by the current
- object and ',' by CR enable you doing multinple command at time.
- if you dont supply a DO, SHOWFILETYPE is automaticaly enable emulating
- a WhatIs command.
-
-