Finally, support for delayed environment variable expansion has been added.
终于添加了延迟环境变量扩充的支持。
If the length is not specified, then it defaults to theremainder of the variable value. If either number (offset or length) isnegative, then the number used is the length of the environment variablevalue added to the offset or length specified. %PATH:~-10%would extract the last 10 characters of the PATH variable. %PATH:~0,-2%would extract all but the last 2 characters of the PATH variable.Finally, support for delayed environment variable expansion has been added.
Delayed environment variable expansion allows you to use a different character (the exclamation mark) to expand environment variables at execution time.
延迟环境变量扩充允许您使用一个不同的字符(惊叹号)在执行时间扩充环境变量。
Delayed environment variable expansion is useful for getting around the limitations of the current expansion which happens when a line of text is read, not when it is executed.
考虑到读取一行文本时所遇到的目前扩充的限制时,延迟环境变量扩充是很有用的,而不是执行的时候。
Conteúdo potencialmente sensível ou impróprio
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.