Delete folders which give error message “Cannot delete folder from … ‘Item not found'”

Earlier in my post build script I entered the following:

robocopy "$(ProjectDir)images" "C:\inetpub\Museo\build\images /MIR /NP /XD .svn >nul

The more observant will notice that I failed to close the destination parameter with the double quote required. What ended up happening was that in the folder, there were now two “images” folder. In order to delete the offending folder I followed the answer posted by Noodle on the following forum entry

For convenience sake, here’s what should be done:

C:\Users\Noodle\Downloads>rename PLUMB-~1 Noodle
C:\Users\Noodle\Downloads>del Noodle
C:\Users\Noodle\Downloads\Noodle\*, Are you sure (Y/N)? y
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: