dotnet4rookie
asked on
Create a directory using Post build Event in VS 2005
Hi,
I would like to know how to create a Directory for instance a Hello directory in the "C:\Windowsapplication1\Bi n\" using PostBuild event so that we will get "C:\WindowsApplication1\Bi n\Hello". I'm already using the Copy command in the PostBuild event to copy contents of the "C:\WindowsApplication1\Wi ndowsappli cation1\bi n\debug" to the "C:\WindowsApplication1\Bi n" Directory. I'm using VS 2005.
Thanks
I would like to know how to create a Directory for instance a Hello directory in the "C:\Windowsapplication1\Bi
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, no idea.
Basicly what you add to events are DOS commands. Strange it's not working...
Basicly what you add to events are DOS commands. Strange it's not working...
ASKER
Anarki Jimbel,
Yeah, That's what I was of the opinion too....but the first build passes (when there is no directory called Hello at that location) but the second build onwards it fails. I tried removing the directory using the "rd" command and then using "Mkdir" but that would not work.
But I think I kind of know what to do. I'm going to use "rd" command in the pre build events and the "mkdir" command in the post build event. I tried it now and it works.
thanks for the help.
Yeah, That's what I was of the opinion too....but the first build passes (when there is no directory called Hello at that location) but the second build onwards it fails. I tried removing the directory using the "rd" command and then using "Mkdir" but that would not work.
But I think I kind of know what to do. I'm going to use "rd" command in the pre build events and the "mkdir" command in the post build event. I tried it now and it works.
thanks for the help.
ASKER
thanks for the response.
I want to copy the build files to a already existing folder. Along with this I want to create a folder which I will copy to the already existing folder or create the folder in the already existing folder.
For instance I have "C:\Windowsapplication1\Bi
All the contents of this folder I should package into a setup program.
mkdir "C:\WindowsApplication1\Bi
Thanks,
Priya