This question may seem counter.
The path for the Windows command line command line is different for several windowed OSs. I would like to know if there is a command that I can enter on the command line that will output the path to the command line.
The environment variable COMSPECcontains this information. It seems to be available sequentially from the ancient days of MS-DOS. ( Wikipedia article )
COMSPEC
echo %COMSPEC% C:\Windows\System32\cmd.exe
Please note that it can be freely changed with SET COMSPEC=, so it is not 1000% reliable.
SET COMSPEC=
script, which.bat, ( Unix which whereis):
which.bat
which
whereis
@for %%e in (%PATHEXT%) do @for %%i in (%1%%e) do @if NOT "%%~$PATH:i"=="" echo %%~$PATH:i
, cmd, :
cmd
> which.bat cmd C:\WINDOWS\system32\cmd.exe
Source: https://habr.com/ru/post/1769994/More articles:iPhone: hide scope from searchBar - iphoneAndroid textview stackoverflow when using hebrew - androidHow can I find out if Heroku is sending gzip answers? - httpДанные MySQL Count за последние 7 дней - sqlbest way to repeatedly display values from sequence to arg list? - clojureБазовая информация Относительная ошибка (не ленивая загрузка). Отношения исчезают - iphoneHow to update tabPanel element title in extjs (sencha touch) - extjsdump pe file from memory to disk - delphiRuby dream in loop in thread - multithreadingAre there any ELMAH-style exception logging components for non-http applications? - .netAll Articles