for
permite extrair (e combinar) várias partes da variável de loop
(retirado de help for
):
%~nI - expands %I to a file name only
%~xI - expands %I to a file extension only
(truncated)
The modifiers can be combined to get compound results:
%~dpI - expands %I to a drive letter and path only
%~nxI - expands %I to a file name and extension only
(truncated)
Você pode usar 7za a "C:\butemp\%%~nxi.7z" "%%i"
Execute help for
para mais opções