What path was used from PATH ?

March 10, 2009 at 04:36:48
Specs: Windows XP
I need to make sure what path is used to launch my program in CMD under Windows. There may be several executable files in different folders listed in PATH variable. Thanks!

See More: What path was used from PATH ?

Report •


#1
March 10, 2009 at 04:56:21
A Path could be a Windows Explorer Directory to where the EXE is located.
e.g.
C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe
(I would do that to open Reader using the Command Prompt)

In the CMD, type
path /?

Watch for help from others.


Report •

#2
March 10, 2009 at 07:01:28
"what path is used to launch my program in CMD under Windows". That's not really clear. Do you mean you want to type an executable in the Run box and have the program open?

EEOC


Report •

#3
March 10, 2009 at 11:36:30
I mean there may be many executive files with the same names in different folders. If the paths to some of these folders are in the PATH variable how can I know for sure which folder is my program called from ?

Report •

Related Solutions

#4
March 10, 2009 at 11:59:11
In your case it will be executed from the FIRST folder or directory specified in your windows path string.

i_Xp/VistaUser


Report •

#5
March 10, 2009 at 12:04:03
Sure, but what if I am afraid to mess up in many folders assigned to PATH variable and want to know what the file is exactly started somehow without looking into it ?

Report •

#6
March 10, 2009 at 12:05:04
If you want to make sure the correct program is started, include the path in your command.

Report •

#7
March 10, 2009 at 12:17:29
Just an FYI - Windows path are editible. See the following document,

http://support.microsoft.com/kb/310519

i_Xp/VistaUser


Report •


Ask Question