hello..
Can any one provide me the code in c++ of deleting the folders or a folder that is not empty..plzz

It depends on the operating system, but in MS-Windows you first have to empty the folder. Or you can call the shell command "rmdir -S" to remove all the files and folders. system("rmdir -S c:\mydir");

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.