Until recently I've used a simple batch file to perform overnight maintenance of our Source Safe database. This batch file is run on the same server that hosts the SourceSafe DB.
The following line checks for files on the server being accessed by users client PCs, then closes the files so that maintenance can begin:
REM *** Close All VSS Files Opened by Network Clients ***
FOR /f "skip=4 tokens=1,2" %%a IN ('net files') DO IF %%b GTR %_ROOT% net files %%a /close
I'm replacing the batch file with a .NET application and therefore need to achieve the same thing through VB.NET.
All help much appreciated!