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
You need to do something like:
if not exist DirToCreate mkdir DirToCreate 
                        This worked for me (where Design is the folder you want to create):
mkdir $(TargetDir)\Design   If you want to check for existence first:
if not exist $(TargetDir)\Design mkdir $(TargetDir)\Design 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With