|
-
June 27th, 2009, 04:56 AM
#1
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.
-
June 27th, 2009, 05:12 AM
#2
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");
-
June 27th, 2009, 05:29 AM
#3
Re: how to browse any folder path and create new folder
 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.
 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");
-
July 3rd, 2009, 12:17 AM
#4
Re: how to browse any folder path and create new folder
Thanks HanneSThEGreaT and Shuja Ali.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|