Where to put an exe file

  • Thread starter Thread starter Justin
  • Start date Start date
J

Justin

I downloaded a program called exiftool that gives me all sorts of info
on JPGs - basically it reads off the exif data in the jpeg header.

Where can I put this file so that whatever cmd prompt I'm at it will
execute? Since I move around alot in directories I don't want to have a
copy of this file in each dir.
 
Justin said:
I downloaded a program called exiftool that gives me all sorts of info on
JPGs - basically it reads off the exif data in the jpeg header.

Where can I put this file so that whatever cmd prompt I'm at it will
execute? Since I move around alot in directories I don't want to have a
copy of this file in each dir.

Here are a couple of choices:
a) Put it into the Windows folder.
b) Put it into the folder c:\MyTools (which you must create), then
modify the %path% via the Control Panel so that it includes
c:\MyTools.
 
Justin,

Usually the %PATH% (start - run - cmd - path) points to
c:\windows; c:\windows\system32

So if you place it in either of these folders then you can run it from
anywhere.

Greetz,
 
Justin said:
I downloaded a program called exiftool that gives me all sorts of info
on JPGs - basically it reads off the exif data in the jpeg header.

Where can I put this file so that whatever cmd prompt I'm at it will
execute? Since I move around alot in directories I don't want to
have a copy of this file in each dir.

When you type the name of an executable at the CMD prompt, the command
interpreter's first job is to find the executable.

The system does this by:
1. Looking in the current folder. If the EXE is not found,
2. The system begins searching folders named in the PATH statement in the
order in which they appear.

So, then, you have three choices:
1. Place the executable in any folder and navigate to that folder before you
execute the program,
2. Place the executable in a folder that's named in the path, or
3. Place the executable in any folder and place that folder's location in
the PATH statement.
 

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

Back
Top