Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: RemoveDir Locking the Folder with UNC Path

Started 1 month, 3 weeks ago by Hongye Sun
Hi Ravi, Thanks for your feedback. I doesn't know any existing method to prevent this issue. One possible way is to write a custom task to delete the folder programmatically. The code logic will be: 1. Try to delete the folder with Try...Catch block; 2. If it catches IOException, wait for a time period then go to step 1; You can make the custom task to be configurable for wait time ...
Site: MSDN Forums  MSDN Forums - site profile
Forum: Team Foundation Server - Build Automation  Team Foundation Server - Build Automation - forum profile
Total authors: 3 authors
Total thread posts: 3 posts
Thread activity: no new posts during last week
Domain info for: microsoft.com

Other posts in this thread:

Mike Fourie replied 1 month, 2 weeks ago
I'm guessing the bin folder is empty, so what you could do is use the MSBuild Extension Pack Folder-RemoveContent task to remove everything from bin, but leave the folder behind . < MSBuild.ExtensionPack.FileSystem.Folder TaskAction = "RemoveContent" Path = " \\DevServer\Services\TickerService\bin " /> Would be better to find out what has the handle, but it's ...

rtandra replied 4 weeks ago
I was not able to reproduce this after wards.   May be it might have resolved by itself or it is a other environment issue.  I know this has occured previously.   I will close this thread.  In future If I get anything I will open the thread again.  Thanks for your feedback.

 

Top contributing authors

Name
Posts
Mike Fourie
1
user's latest post:
RemoveDir Locking the Folder...
Published (2009-11-10 23:27:00)
I'm guessing the bin folder is empty, so what you could do is use the MSBuild Extension Pack Folder-RemoveContent task to remove everything from bin, but leave the folder behind . &lt; MSBuild.ExtensionPack.FileSystem.Folder TaskAction = &quot;RemoveContent&quot; Path = &quot; \\DevServer\Services\TickerService\bin &quot; /&gt; Would be better to find out what has the handle, but it's another option for you....
Hongye Sun
1
user's latest post:
RemoveDir Locking the Folder...
Published (2009-11-09 07:38:00)
Hi Ravi, Thanks for your feedback. I doesn't know any existing method to prevent this issue. One possible way is to write a custom task to delete the folder programmatically. The code logic will be: 1. Try to delete the folder with Try...Catch block; 2. If it catches IOException, wait for a time period then go to step 1; You can make the custom task to be configurable for wait time period and retry times limit. Hope it helps.   Hongye...
rtandra
1
user's latest post:
RemoveDir Locking the Folder...
Published (2009-12-02 19:13:00)
I was not able to reproduce this after wards.   May be it might have resolved by itself or it is a other environment issue.  I know this has occured previously.   I will close this thread.  In future If I get anything I will open the thread again.  Thanks for your feedback.

Related threads on "MSDN Forums":

Related threads on other sites:

Thread profile page for "RemoveDir Locking the Folder with UNC Path" on http://msdn.microsoft.com. This report page is a snippet summary view from a single thread "RemoveDir Locking the Folder with UNC Path", located on the Message Board at http://msdn.microsoft.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity