Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to delete a folder itself in C++

Currently im using the C++ Library "stdio.h". I am expecting it to delete the folder form my desktop. I am using this code:

// Deletes the folder test
remove("C:/Users/iYahoo/Desktop/test");

I am using Visual Studio 2019 with the latest C++ installation. I’ve also installed this redistribute: https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I think you might be referring to this function.
You are currently on Windows, so consider to use the WindowsAPI call.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading