Quote:

Thanks!




No problem.

There are some problems when deleting drive mappings that I believe have not been resolved - do a search of the forums to pick up the latest news.

If you still have difficulties then add some debugging code after each of the deletes to display the values of @ERROR and @SERROR.