📄 scan.txt
字号:
SCAN [DUAL MODE]
NAME SCAN - Scan volumes and run commands.
SYNTAX
scan [dir(s)] [files(s)] [/NOD|/TEST|/H|/?]
[+A|+R|+S|+H|+D|+A] [-commands]
USAGE
Scan is used to scan through one or several volumes. As
it finds files, it runs the commands specified on command
line. IF no command is given, scan shows the name of the
file as the FF-command.
Scan can be given a list of drives e.g C: D:. Scan
searches these drives for the given files. Each drive
specifier can contain also a directory specifier e.g
c:\test, then scan searches starting from the test
directory. Normally scan starts its search from the root
directory.
Normally scan finds files with attribute bit, readonly
bit or no bits set. If you want to find files with other
combinations of attributes, you must use the /NOD (=No
Default) switch and the desired attributes.
Files are specified using normal OS/2 rules with ? and *
acting as wild cards.
There is a /TEST-switch, which outputs the commands as
they would be run.
If you want to give arguments to the command, you must
encluse the command and its arguments inside double
quetes. The special string %fname is expanded to contain
the fully qualified filename. E.g.:
SCAN . /S *.exe -"copy %fname a:"
would copy all *.exe files from this directory and below
to the A:-drive.
There can be any amount of command at the end of the
command line. Commands are run in the order as they
appear on the command line, so be sure to put del-command
as last.
The following options are recongnized:
+H include also hidden files.
+S include system files
+R include read-only files
+A include files with attribute-bit.
+D include directories (does not make too much sense with
SCAN).
+N include normal files. This is the default. Normal
files include files with read-only or archive or no bits
at all set.
/NOD No Default. Do not include any files by default.
SOme combination of attributes must be given.
/TEST Show commands as they would be generated, without
running them.
SEE ALSO
ff
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -