bin目录和PATH [英] bin directory and PATH

查看:175
本文介绍了bin目录和PATH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编程的新手.有人可以(用简单的词来解释)程序的bin目录中有什么吗?

I'm beginner in programming. Can somebody please explain (by simple words) what do I have inside the bin directory of program?

Windows的PATH环境变量是什么,它如何工作(请不要以为我不知道如何使用Google,我只是想更清楚地了解它)?

What is this PATH environment variable of windows, how does it work (please don't think that I don't know how to use Google, I just want to understand it more clearly)?

推荐答案

通常,您将程序的所有二进制文件放在bin目录中.这将是可执行文件本身以及程序使用的任何dll(动态链接库).

You usually put all the binary files for a program in the bin directory. This would be the executable itself and any dlls (dynamic link libraries) that the program uses.

这不是必需的,因为Windows使用PATH环境变量来查找程序所需的dll.这是Windows在当前目录中找不到dll(例如)时按顺序搜索的文件夹的列表.

This isn't essential as Windows use the PATH environment variable to look for dlls your program needs. This is a list of folders that Windows searches, in order, when it can't find a dll (say) in the current directory.

因此,如果要让一个以上的程序使用一个dll,可以将其放在PATH上已经存在的位置,或者将新文件夹添加到PATH.

So if you want to have a dll used by more than one program you could put it in a location already on the PATH or add a new folder to the PATH.

这篇关于bin目录和PATH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆