I am trying to delete files in my $(TargetDir)
within visual studio before building a project.
How do you have to format command line to get around this problem I am getting below?
In Windows Explorer, locate and select the files associated with the project or item you want to delete. On the File menu, click Delete.
Try
cd $(TargetDir) del *.tif
As jvenema pointed out, your $(TargetDir) is expanding into a path containing spaces in the folder names which is breaking the delete command.
I ended up using rd /s /q "$(TargetDir)"
to clean out the directory. As far as I know it is working.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With