Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please I need a native routine with which I can get the address of a directory from the User.

GetOpenFileName Function lunches a dialogue box that give users an access to the computer's directory sotha t ther can choose a file.
I need something like that with which users can choos a directory istead.

I need it so that users can specify the directory they want my application to copy.
Posted

Check this[^], there's a sample code also.

You can even use SHBrowseForFolder[^].
 
Share this answer
 
v3
Comments
Jochen Arndt 12-Sep-12 6:53am    
Beat me.
Malli_S 12-Sep-12 6:55am    
Oops ! You beat me in adding 'SHBrowseForFolder'. :D
Jochen Arndt 12-Sep-12 7:00am    
? Your post is 2 minutes older and the first link is the same as mine. Your edited link is for Windows CE.
Malli_S 12-Sep-12 7:07am    
Hey, thanks for identifying the link, I copied wrong link from open windows. :)
You can use SHBrowseForFolder[^].

A ready to use implementation can be found in the article FolderBrowser[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900