Priority of application in Run

K

Kappa

Hello

When you write some command in Run, is there any priority order against
which Windows checks to find out if its .EXE command or its batch file
or come .CPL command.

I'm not sure if Windows tolerate the missing extension, although it's
not the case with .EXE files ("calc" is same as "calc.exe").

Just wondering and would like an insight into it or perhaps a link will
do.

Thanks a lot.

Kappa
 
B

Bob I

Is this what you are asking about?

Files with the same name, different extensions

You might have some files in the same directory that share the same file
name but have different extensions. For example, you might have a file
named Accnt.com that starts an accounting program and another file named
Accnt.bat that connects your system to the accounting system network.

The operating system searches for a file by using default file name
extensions in the following order of precedence: .exe, .com, .bat, and
..cmd. To run Accnt.bat when Accnt.com exists in the same directory, you
must include the .bat extension at the command line.

• Two or more identical file names in the path

If you have two or more files in the command path that have the same
file name and extension, Windows XP searches for the specified file name
first in the current directory, and then it searches the directories in
the command path in the order in which they are listed in PATH.
 
K

Kappa

Thanks Bob for your help.



Bob said:
Is this what you are asking about?

Files with the same name, different extensions

You might have some files in the same directory that share the same file
name but have different extensions. For example, you might have a file
named Accnt.com that starts an accounting program and another file named
Accnt.bat that connects your system to the accounting system network.

The operating system searches for a file by using default file name
extensions in the following order of precedence: .exe, .com, .bat, and
.cmd. To run Accnt.bat when Accnt.com exists in the same directory, you
must include the .bat extension at the command line.

· Two or more identical file names in the path

If you have two or more files in the command path that have the same
file name and extension, Windows XP searches for the specified file name
first in the current directory, and then it searches the directories in
the command path in the order in which they are listed in PATH.
 

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