Bin folder is useful to store the executable files. These executable files can be run from any folder as any other commands in Windows OS.
Use below steps to prepare a bin folder in Windows OS.
- Create a bin folder in any location in your system. e.g., C:\bin
- In Search, search for and then select: System (Control Panel)
- Click the Advanced system settings link and click Environment Variables button.
- In the section System Variables find the
PATH
environment variable and select it. Click Edit. If thePATH
environment variable does not exist, clickNew
. - In the Edit System Variable (or New System Variable) window, specify the value of the
PATH
environment variable(e.g., C:\bin). Click OK. Close all remaining windows by clicking OK.
Now the bin folder is ready to use and you can store any executable scripts in this folder.