Deleting entire folder in Visual Studio Post-build event
I am trying to delete a folder in my output directory using the following command line:
del /F "$(TargetDir)Content\"
Tho I always end up with error code 1. I've tried several different ways, without / F, with / without forward slash both before and after, etc.
Error 1 The command "del /F "E:\proj\bin\Windows\Debug\Content\"" exited with code 1.
There are many questions regarding deleting files in post build event command lines in visual studio that work great, but I cannot delete the folder without getting code 1.
Any help is appreciated!
+3
source to share