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 ?
-mcpeterson
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 ?
-mcpeterson
You can place the file here to make it accessible to any command/call
%windir%/system32
or you can place the file in a custom location and include it in the Windows 'path': http://www.computerhope.com/issues/ch000549.htm .
Create a folder under the c:\program files\ folder and put it in there. If you want it to be runnable from the command line you'll need to add the folder path to the PATH environment variable.
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.
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.