How does application (any) make its shortcut for launch in installation? For example c:\>start calc will launch windows calculator, but I have no idea where is located the executable calc.exe and how did the application make a shortcut for it (so it could be used as a argument to start command). Another example c:\>start gcc foo.c will trigger the gcc compiler (installed from mingw), but how does start command know where to find its executable? I know the cmd.exe will look in %PATH%, which in my case is C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Users\ppast\AppData\Local\Microsoft\WindowsApps;C:\Users\ppast\.dotnet\tools;C:\Users\ppast\OneDrive\Plocha\scripts;
But for example - if I trigger c:\windows\system32> cl foo.c gives:
'cl' is not recognized as an internal or external command,
operable program or batch file.
gives error. But I know I have the windows compiler installed (since I have visual studio c++ installed).
So how does application makes shortcuts (and how to find out, which shortcut/name should I use as argument for start when I know application name) ? And how to make custom shortcut for my own exe files?
shell:<foldername>folders. Paste into command prompt.(@For /f "tokens=1* delims=" %A in ('reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions /f name /v name /s ^| findstr /c:"Name" ^| Sort') Do @Echo %A) & pause. EG in Start Run DialogShell:Startupor at command promptstart shell:startup. – Mark Jul 23 '20 at 22:55(@For /f "tokens=1* delims=" %A in ('reg query HKCR /f "URL:*" /s /d ^| findstr /c:"URL:" ^| findstr /v /c:"URL: " ^| Sort') Do @Echo %A %B) & pauseEG in Start Run dialogcalculator:\\or command promptstart calculator:\\. – Mark Jul 23 '20 at 22:57(@For /f "tokens=7* delims=\" %A in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths" /f "*" /k') Do @Echo %A) & pause. EGwriteorstart write. – Mark Jul 23 '20 at 23:00dir c:\windows\*.exe c:\windows\system32\*.exe /awill show starter apps for programs like calc. – Mark Jul 23 '20 at 23:02