Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
How can I creat a directory in "My Computer" by using C-language ?

putted the "" around "My Computer"
Posted
Updated 9-Feb-11 20:05pm
v2

1 solution

Despite of the high votes on Prerak Patel's answer, you can not use mkdir to create a folder under My Computer; My Computer is not a conventional folder.

To add something to My Computer, you have to make a Shell Folder. Have a look at my answer here[^] for an example.

To implement this in C/C++, you can use these[^] functions.
 
Share this answer
 
Comments
Nish Nishant 9-Feb-11 10:40am    
Voted 5. Proposed as answer.
Sergey Alexandrovich Kryukov 9-Feb-11 15:20pm    
Better. My 5.
--SA
JF2015 10-Feb-11 2:13am    
Good answer. 5+

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