CMD's start command ?

May 17, 2020 at 05:30:29
Specs: Win 10, 8GB
From command line, you can start up programs using the START command.
Example:

START "Hello world" Firefox

This will start up Firefox (in case you have it installed, obviously).
The START command actually is a command of the CMD command line set, which allows for commands/scripts
to be kicked off in the background.
The different with normal usage, like compared with CMD's CALL command, is that the CALL command waits
for the program to finish, then continue with the rest of the commands (in a script or at command line).

But that is a side note, the question is this:
I noted that, while I can run the above command, and see Firefox being started,
something weird happens when you just try this:

Firefox

It will (may (*)) state this:
firefox is not recognized as an internal or external command, operable program or batch file.

That's a lot, but it means: there's nothing in your PATH that allows to start any executable program named "firefox".

But wait, when I ran the START command, it started up Firefox !
And, the Mozilla Firefox is not in my PATH, indeed.

How does the START command fails to run any exectuable then ?
It just ignores the PATH variable as a whole!


(*1) : Obviously you get the error CORRECTLY if you do not have Firefox installed. The condition here is that Firefox is actually installed. Note also that you can replace "Firefox" with other additional, non-Microsoft software.


See More: CMDs start command ?

Reply ↓  Report •

#1
May 17, 2020 at 06:03:19
it's because it does not point to anything called firefox in path or the current directory.

type path in cmd to see were is looks.

you should be able to start firefox without the start command if it can be found in PATH

START apparently looks in a different place like:
%ProgramData%\Microsoft\Windows\Start Menu\Programs
or
%appdata%\Microsoft\Windows\Start Menu\Programs

specs: https://www.userbenchmark.com/UserR...


Reply ↓  Report •

#2
May 17, 2020 at 09:08:04
> it's because it does not point to anything called firefox in path or the current directory.
>
> type path in cmd to see were is looks.
>
> you should be able to start firefox without the start command
> if it can be found in PATH
>

That is what I explained in my opening post, not sure why you repeat this info

> START apparently looks in a different place like:
> %ProgramData%\Microsoft\Windows\Start Menu\Programs
> or
> %appdata%\Microsoft\Windows\Start Menu\Programs

That sounds more like an answer to my question. I'll have a look at this


Reply ↓  Report •

#3
May 17, 2020 at 09:22:37
"That is what I explained in my opening post, not sure why you repeat this info"

what question of yours? from a different topic? this one?

https://www.computing.net/answers/w...

why do ppl start new threads to answer questions? it makes soo little sense to me

specs: https://www.userbenchmark.com/UserR...


Reply ↓  Report •
Related Solutions


Ask Question