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?