tags:

views:

26

answers:

1

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

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)?

Thanks in advance for any help.

+1  A: 

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.

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.

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.

ChrisF
@ChrisF: first of all, thanks for answer, secondly, so PATH I need only for dll (I mean for windows to know where it can find some library)?
wantSTUDY
@wantSTUDY - PATH is used for other things as well - for example if you just type the name of an exe from the command prompt Windows uses the PATH to search for it if it's not in the current directory.
ChrisF