Bob houghtby

I really need an example working syntax for the ssarc.exe using the -d -x option against projects in a VSS DB. I cannot do it at the root level because I get "cannot delete at root". I cannot seem to get it to work at the project level.

Please help.



Re: Visual Studio Source Control and SourceSafe help for ssarc.exe

Patrick MCCormick

Hi Bob,

I am assuming you are trying to archive and delete (purge) deleted projects or files.

The syntax to archive a deleted project name test under $/ is

SSArc -d- -x Archive1.ssa "$/test"

The syntax to archive a deleted file call test.cs under "$/Components/kb"

SSArc -d- -x Archive1.ssa "$/Components/kb/test.cs"

I am not sure if the command works recursively or with wildcards.

If you are trying to do this for an entire database you may want to consider using the tool vssems

http://blogs.msdn.com/korbyp/archive/2004/06/16/157300.aspx

under the tools menu | purge option it gives you a GUI interface to recursive, list and purge deleted items and/or create a batch file to archive and delete deleted items in the database.

I hope this helps.






Re: Visual Studio Source Control and SourceSafe help for ssarc.exe

Bob houghtby

This helps.. Just your wording made me realize what I did wrong. I was thinking all I had to do was put the name of DB and SSarc would cycle through grab the deleted projects and I would then be done. Now that I explicitly name the project that has been deleted that works.

I will try out that link since it would be nice just to cycle through without first identifying the items.