Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where should I store an executable program in Windows?

I have a little utility that I need to use, and I'm not sure where to have users save it in windows.

I want to know what is the Windows directory equivalent of /usr/bin?

like image 722
mcpeterson Avatar asked Jun 27 '26 04:06

mcpeterson


2 Answers

Applications in Windows should be stored under the program files folder. This folder defaulta to

  • C:\Program Files (environment variable %ProgramFiles%)

or to

  • C:\Program Files (x86) (environment variable %ProgramFiles(x86)%) for 32-bit applications on a 64-bit version of Windows.

See also point 2.4 of the Windows Logo Requirements:

The application should install to the Program Files folder by default.

like image 188
Dirk Vollmar Avatar answered Jul 03 '26 01:07

Dirk Vollmar


You should put it in a new folder in the "Program Files" directory. Then append that folder to the PATH variable (right-click "My computer" > Properties > Advanced > Environment Variables). As in *nix, the PATH variable defines which programs can be started without specifying the absolute path.

For example, I have all the gnuwin32 tools in "C:\Program Files\gnuwin32\bin" and added that folder to my PATH variable. Now I can directly use Unix tools like tar on Windows.

like image 32
AndiDog Avatar answered Jul 03 '26 02:07

AndiDog



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!