Setting up a BIN directory for Windows executables
On Linux systems there is a /bin folder containing executable files accessible by all users from any directory. We find it really useful to set up a similar C:\Bin directory on our Windows systems to keep all the miscellaneous executable files (.EXE, .BAT) we use frequently.
Here are instructions on how to do it.
Procedure
-
Create a directory C:\Bin
mkdir C:\Bin
- Add this directory to your PATH variable. We prefer to have it first in the list. See Setting the PATH variable below.
PATH=C:\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;...
- Copy your executable programs to this directory.
C:\Bin base64.exe digestvalue.exe dumpasn1.exe hexdump.exe MySecret.exe sha1sum.exe sha256sum.exe ...
> sha1sum abc.txt a9993e364706816aba3e25717850c26c9cd0d89d *abc.txt
Setting the PATH variable
We want to add C:\Bin to our computer's PATH variable. Note that MS continually changes how to do this. Here are instructions that worked for us using Windows 10 version 20H2.
⊞ Win
+X
> System > (scroll down) Advanced System Settings- Click on the Enviroment Variables button
- Under System Variables select Path and click the Edit... button.
- Click New and enter C:\Bin then keep clicking the Move Up button until C:\Bin is at the top of the list.
- Click OK to finish.
See also Windows Path Variable
Useful utilities
Put any or all of our Utilities for Windows in your C:\Bin directory:
- base64.exe
- digestvalue.exe
- dumpasn1.exe
- hexdump.exe
- MySecret.exe
- sha1sum.exe, sha256sum.exe, etc
- wdiff.exe
Contact us
To contact us or comment on this page, please send us a message.
This page first published 28 June 2021. Last updated 3 November 2023