Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
how can I change or delete Directory Structure of file?

I want do this when I have (only) address of file for example : D:\new folder\nm9\example.mp3

please explain your way ...

Thanks in advance
Posted

1 solution

Use PathRemoveFileSpec() to get rid of the file name. Then use RemoveDirectory() or SHFileOperation() to delete the directory.
 
Share this answer
 
Comments
Mehrdad-p70 17-Apr-11 15:20pm    
thanks

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