How to use system environment variables in VS 2008 Post-Build events?
How do I use system environment variables in my project post-build events without having to write and execute an external batch file? I thought that it would be as easy as creating a new environment variable named LHDLLDEPLOY and writing the following in my post-build event textbox: copy $(TargetPath) %LHDLLDEPLOY%\$(TargetFileName) /Y copy $(TargetName).pdb %LHDLLDEPLOY%\$(TargetName).pdb /Y ...but alas, no. The build output shows that it wrote the files to the " %LHDLLDEPLOY% " folder (as " 1 file(s) copied " twice), but the files are not in the equated path and there is not a new folder