these folders are in the registry. so you could write them programmatically if you want. but dont see much sense in doing so. putting it to vc++ directories is a only-once doing. i would think it is the easiest step in all dll development. if the dll comes from outside you better use always the same folder and make the name of the dll a variable. you also could copy your dll and pdb to the predefined dll (or bin) folder. that could be made by post-build step.