windows - %~$PATH:1 expansion issue -


So I recently stumbled on (potentially) useful% ~ $ pat: 1 extension, though I think that Unable to do it works correctly I tried to use it, to make cheaper windows version of the command, though the syntax seems to defeat me. My batch file looks like this:

  @echo off echo% ~ $ PATH: 1  

However when I run it for example I get the output of "ECOOut Out", which means that% ~ $ PATH: 1 was not found according to the DOCS

"CMD". What am i doing wrong

Extension. Enough of checking files with .exe, .cmd, or .bat The set of applicable extensions is defined in the Environment variable PATHEXT.

There is a version that respects the PATHEXT variable on the search:

  @echo off rem "% ~ 1" == "" (echo experiment: which CMDN Exhaust / B1) Call: Equivalent to Univix Windows which is equal to that of the passcode enabled attribute, call: findOnPath "% ~ 1" If the error is not outside Level 1 / B 0% for E% (% PATHEXT:; =%) (call: SearchonPath "% ~ 1 %% E" error level 1 is not exhaust / b 0) "% ~ 1" found on pound if "% ~ $ PATH: 1" == "" (Echo "% ~ $ PATH: 1" Exit / B) Exit / B1  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -