I can use the VS macros like $(ProjectDir) in my pre & post build events. But is there any way I can specify them in a batch file & run the batch file as my pre & post build event?
e.g.
Before
Post-Build event
copy $(ProjectDir)foo.txt $(ProjectDir)\out\foo.txt
After
Post-Build event
CopyFoo.cmd
where CopyFoo.cmd contains
copy $(ProjectDir)foo.txt $(ProjectDir)\out\foo.txt
I want to do this to make my build events list more user-friendly to edit/update. Editing a batch file is much easier than editing the build events box in VS.