>>*-- Check if the library file that you open is readonly. >>* >>LOCAL loWSH AS Scripting.FileSystemObject >>loWSH = CREATEOBJECT("Scripting.FileSystemObject") >>* >>LOCAL loFile AS SCRIPTING.File >>loFile = loWSH.GetFile(oFile.Name) >>* >>IF loFile.Attributes/2 <> INT(loFile.Attributes/2) >> MESSAGEBOX("Warning: file is readonly!",16) >>ELSE >> CLEAR CLASSLIB (oFile.Name) >>ENDIF >>* >>>>This gives the messagebox warning to the developer if the file is readonly. Now I am wondering if I could use at this place the commandline tools in TFS in order to let the user checkout the file right on the spot, (or tell the user that someone else has checked it out) so you don't need to go to the Source Control Explorer in VS. I have read some examples of TFS commandline functions, but I could not yet get it to work, maybe someone has done this before, or has better resources for that?