PostBuildEvent Create Directory

c#, cmd, post-build-event, visual-studio-2010

Solution

You need to do something like:

if not exist DirToCreate mkdir DirToCreate

Problem

I'm trying to create a folder named Design in the build output folder using th following commandline in the PostBuildEvent in visual studio ``` mkdir $(TargetDir)Design ....Runs Successfully but folder is not created mkdir "$(TargetDir)Design" ....Runs Successfully but folder is not created MD $(TargetDir)Design ....Runs Successfully but folder is not created MD "$(TargetDir)Design" ....Runs Successfully but folder is not created ``` Can anyone tell me what I'm doing wrong

Original source