Click here to Skip to main content
15,900,685 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi everyone,

I hope it's the place to ask my question.

I have a file in my solution that is locked by another user the no longer work for us, now how can I force this file to be checked out for edit, or maybe to delete it?

Thank you.
Posted
Updated 15-Feb-11 13:51pm
v2

Assuming you are using TFS, ask your TFS administrator to undo the checkout.
 
Share this answer
 
Comments
nisha4285 18-Feb-11 4:57am    
I'm the administrator :)
I tried to undo with the vs2008 connamd tool but it didn't work....

Any ideas?

Thank you again
Ok I found the correct command

tf undo /workspace:[workspace name];[Domain User] /server:[Server TFS] /recursive "$/[Project]"
 
Share this answer
 
v2
Comments
RaviRanjanKr 18-Feb-11 7:05am    
please don't post as answer to Own question.
you can use "Submit Comment" button to put your comments
AspDotNetDev 4-Apr-11 15:46pm    
The OP was posting an answer. They did the correct thing by posting it as an answer.
Hi

You may try this:

'use system.io in the header then

File.SetAttributes("path to file", FileAttributes.Normal)

'if you want to delete the file then

File.Delete("Path to file")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900