Vertaling van "environment variable expansion" in Chinees
We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
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.
考虑到读取一行文本时所遇到的目前扩充的限制时,延迟环境变量扩充是很有用的,而不是执行的时候。
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.
Similarly, the following examplewill not work as expected: set LIST= for %i in ( ) do set LIST=%LIST i echo %LIST%in that it will NOT build up a list of files in the current directory, but instead will just set the LIST variable to the last file found.Again, this is because the %LIST% is expanded just once when theFOR statement is read, and at that time the LIST variable is empty.So the actual FOR loop we are executing is: for %i in ( ) do set LIST= %iwhich just keeps setting LIST to the last file found.Delayed environment variable expansion allows you to use a differentcharacter (the exclamation mark) to expand environment variables atexecution time.
同样,以下这个例子也不会达到预期效果: set LIST= for %i in ( ) do set LIST=%LIST i echo %LIST%原因是,它不会在目前的目录中建立一个文件列表,而皇墙?LIST 变量设成找到的最后一个文件。 这也是因为 %LIST% 在FOR 语句被读取时,只被扩充了一次;而且,那时的 LIST 变量是空的。 因此,我们真正执行的 FOR 循环是: for %i in ( ) do set LIST= %i这个循环继续将 LIST 设成找到的最后一个文件。
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.