Они описаны в справке, доступ к которой осуществляется через ftype /?
.
По сути, %1
ссылается на имя файла, в то время как %*
получает каждый аргумент, переданный в файл, который был выполнен. Они в том же формате, что cmd.exe
и собственная обработка параметров, как и в пакетных файлах .
Текст взят из ftype /?
:
................................................. Within an open command string %0 or %1 are substituted with the file name being launched through the assocation. %* gets all the parameters and %2 gets the 1st parameter, %3 the second, etc. %~n gets all the remaining parameters starting with the nth parameter, where n may be between 2 and 9, inclusive. For example: ASSOC .pl=PerlScript FTYPE PerlScript=perl.exe %1 %* would allow you to invoke a Perl script as follows: script.pl 1 2 3