O que% ~ 2 significa nesta linha de comando do windows ftype?

1

Encontrou este link

ftype phpfile="C:\PHP5\php.exe" -f "%1" -- %~2

O que% ~ 2 significa?

    
por Am1rr3zA 05.12.2009 / 13:07

1 resposta

3

De 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.

    
por 05.12.2009 / 13:17

Tags