how to browse any folder path and create new folder
Hi All,
I'd like to make some file operations :
1) want to explorer or browse any folder path by clicking any button.
2) want to create new folder like C:\OutputFolder automatically after installing exe file or setup file.
Pls share me how to do them.
Re: how to browse any folder path and create new folder
Something like this will open the Explorer at the specified directory :
Code:
Process.Start("explorer.exe", "/n,/e,C:\\Test1\\Test2");
Re: how to browse any folder path and create new folder
Quote:
Originally Posted by
soclose
1) want to explorer or browse any folder path by clicking any button.
Use the FolderBrowser dialog. This will let you select a folder.
Quote:
Originally Posted by
soclose
2) want to create new folder like C:\OutputFolder automatically after installing exe file or setup file.
Use the CreateDirectory method of the Directory class.
Code:
System.IO.Directory.CreateDirectory(@"C:\OutputFolder");
Re: how to browse any folder path and create new folder
Thanks HanneSThEGreaT and Shuja Ali.