Create directory using Nant
Asked Answered
W

1

10

Not sure if I'm just totally missing it but I couldn't not figure out how to create a new directory using Nant. Is there built in functionality to do this? Can I just use the command prompt? I tried something along the lines of:

<exec program="cmd" commandline="md c:\test" />  

but it just opened up a command prompt on the screen and never finished...

Wellknown answered 10/12, 2009 at 2:34 Comment(0)
B
17

You can use the mkdir task:

<mkdir dir="one/two/three" />
Birgitbirgitta answered 10/12, 2009 at 2:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.