Command Prompt v. Run Box?


T

Terry Pinnell

It's been a long time since I worked with DOS, Batch files, etc, and I'm
unclear about the distinction between running things in the Run Box as
compared with a Command Prompt.

Can someone summarise the distinction please? Are there some simple rules
that decide whether a command will work in the Run Box? And if it does,
will it always work in a Command Prompt too? But not necessarily vice
versa?
 
Ad

Advertisements

J

JJ

Terry Pinnell said:
It's been a long time since I worked with DOS, Batch files, etc, and I'm
unclear about the distinction between running things in the Run Box as
compared with a Command Prompt.

Can someone summarise the distinction please? Are there some simple rules
that decide whether a command will work in the Run Box? And if it does,
will it always work in a Command Prompt too? But not necessarily vice
versa?

Command prompt works like COMMAND.COM in DOS but with additional
awareness of file association. For example, you can simple enter a text
file name such as MYNOTE.TXT which will execute Notepad to open that
file.

Run Box is not a replacement for the command prompt nor it's a command
interpreter. Thus it doesn't have any internal command nor support of
escape characters. It's used mainly to open file/folder whether for
executing a program file or open a document file using file association.
BAT/CMD files are considered as document files. The shell will use the
CMD.EXE program to open those files.

In Run Box, you can't enter (no quotes) "ECHO Hello!" into the Run Box
because it expects that "ECHO" is a file. You'll need to use the CMD.EXE
to execute that internal command. e.g.:
CMD /C ECHO Hello!
or...
CMD /C ECHO Hello! & PAUSE
 
Ad

Advertisements

T

Terry Pinnell

JJ said:
Command prompt works like COMMAND.COM in DOS but with additional
awareness of file association. For example, you can simple enter a text
file name such as MYNOTE.TXT which will execute Notepad to open that
file.

Run Box is not a replacement for the command prompt nor it's a command
interpreter. Thus it doesn't have any internal command nor support of
escape characters. It's used mainly to open file/folder whether for
executing a program file or open a document file using file association.
BAT/CMD files are considered as document files. The shell will use the
CMD.EXE program to open those files.

In Run Box, you can't enter (no quotes) "ECHO Hello!" into the Run Box
because it expects that "ECHO" is a file. You'll need to use the CMD.EXE
to execute that internal command. e.g.:
CMD /C ECHO Hello!
or...
CMD /C ECHO Hello! & PAUSE

Thanks JJ, much clearer now.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top