Hi.. I am developing an application which requires a folder to be created in the project folder.

I am using the following code to create a folder

string path="D:\\SchoolProject\\Image Folder";
System.IO.Directory.CreateDirectory(@path);

Now I want that the folder should be created in the folder where the user is installing the application. How about adding this folder while deploying this project...

Please reply...
Thanx

Recommended Answers

All 2 Replies

In order for you to achieve this, in your current solution you have to create a Setup project. There are two options:

1)Create a blank setup project and add things by yourself
2)Create a setup project with the aid of a wizard.

Hope i helped,
Alex

But if suppose I want to create a folder in a system folder, I mean My documents or the program file of that application... how would be it possible
Secondly... I have set the full path name of my project folder in the path string
Pls tell me how to set the path of installation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.