Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Windows (https://www.askmehelpdesk.com/forumdisplay.php?f=237)
-   -   Executable file in bin folder (https://www.askmehelpdesk.com/showthread.php?t=540393)

  • Jan 4, 2011, 03:05 AM
    victorray
    Executable file in bin folder
    In linux if we put the executable file in bin folder, we can run this file with out specifying its path. Could anyone please tell the similar option in Windows OS. Thank you in advance.
  • Jan 5, 2011, 05:38 PM
    Scleros

    The command search path in Windows is set by an environment variable named %PATH% for Windows NT and later versions. The paths that could be considered default since they are set when the operating system is installed are C:\Windows and C:\Windows\System32. However these locations cannot be considered reliable as Windows setup allows changing where the OS is installed. Plus, it is very poor form for an application to co-mingle and litter its files with Windows' (it is also very poor form that Windows will let it, but that's another matter). So, no, there isn't a similar option exactly. Instead an application can append its installation path to the path environment variable. %PATH% can also be manually edited via Windows' Control Panel > System > Advanced > Environment Variables.

    Also, files with executable extensions (primarily .exe, com, and .bat) will run from the current directory without specifying a path (such as .\MyExe.exe).

  • All times are GMT -7. The time now is 03:34 AM.