|
From: | Vladimir Panteleev |
Subject: | Re: Support variable-unquoting syntax in bat-mode |
Date: | Wed, 14 Mar 2018 14:15:52 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hi Jostein, On 2018-03-14 08:37, Jostein Kjønigsen wrote:
That seems to work for me, but ~ seems like a odd special case to put in there in the first place, so I would assume it was intentionally put there. Anyone have any background on this?
AFAIK, argument substitution follows the same rules as for "FOR" variable references. Run "for /?" or "help for" in a Windows command prompt to get a description of it.
E.g. %~dp1 means to get the unquoted drive and path of the first argument. -- Best regards, Vladimir
[Prev in Thread] | Current Thread | [Next in Thread] |