View Single Post
Old 12-09-2010, 09:00 AM
Statler6's Avatar
Statler6 Statler6 is online now
Registered User
Join Date: 02-06-2006
Posts: 13
Disconnect network drive with resource closing

I have to change drive mappings during build and sometimes it might happen that I get the following message when VBP tries to disconnect a drive mapping:
09.12.10 14:20:52: Building project step 3 - Disconnect Drive...
There are open files and/or incomplete directory searches pending on the connection to Q:.

Is it OK to continue disconnecting and force them closed? (Y/N) [N]: 
No valid response was provided. suggests that this can be avoided by using
NET USE [driveletter:] /DELETE /Y
instead of
NET USE [driveletter:] /DELETE
I suggest that the Map Drive action is amended to provide an option for that /Y flag to disconnect network drive.
Reply With Quote