How can I vary which isql.exe is run?

  • Thread starter Thread starter Laurel
  • Start date Start date
L

Laurel

I have an isql.exe for sybase and one for sql server. When I enter ISQL as
a DOS command how does the system know which isql.exe to run? If I go to
the directory where one of them exists, and enter isql.exe at the dos
command, will it run the one in my directory?
 
I have an isql.exe for sybase and one for sql server.  When I enter ISQL as
a DOS command how does the system know which isql.exe to run?  If I go to
the directory where one of them exists, and enter isql.exe at the dos
command, will it run the one in my directory?

If you run something from a DOS command, it will look in that
directory first, then start searching the PATH variable from the
beginning to the end. It till run the first isql.exe it finds.

Type PATH from your command window to see your path (which can be
adjusted).

You can make two different batch files to run either one from the same
folder, you can change to the right folder and run the right command
(s).

There is a fair amount of flexibility.

Jose
 
Back
Top