|
Answer» I would like to search a specific extn file in a VSS Project > Multiple Sub Project through command line
(e.g. $/Applications is my current project and $/Applications/Project1, $/Applications/Project2, $/Applications/Project3 are my Sub projects. )
Please can anyone provide me command line syntax for following:
1) Search specific extension file across sub-projects (e.g. abc.css)
2) Check out all those files which display in result
Thanks a lot in advance.
The MSDN site here msdn.microsoft.com/en-us/library/asxkfzy4(VS.80).aspx will tell you how to use the command lineThanks gpl, I've already gone through their site but I didn't any command similar to wild CARD search which locate file across projects. I know it is possible through VSS interface, but I am looking for command line solution.I dont have VSS anymore, so working from first principles, are you able to extract a list of the files in the repository or do you have to know what you want before you start ?
If you can extract a list, then you can save it to a file, filter it with findstr then PROCESS it line by line knowing that you are only looking at the files that meet your criteria.
Does this help at all ?Yes I am to able to extract all the files in NOTEPAD, but not in a position to check out all those files.If you can extract a list of files into a text file, finsdstr can then filter this list for example (here Im not SURE what your list of files would actually look like) suppose you extracted your list to vss.lst and it held: Code: [Select]a\fred.vb a\fred.cls b\fred.task b\abc.css c\def.css c\cars.vb d\abc.cssthen the line Code: [Select]FindStr "abc.css" vss.lst>vss-filter.lstwill select these files into the filtered list Code: [Select]b\abc.css d\abc.css You can now process the filtered list line by line to extract each of the wanted filesBelow is the complete output txt file using Findstr, all of them are in VSS Working folder location means they are with read only attributes, and i would like all of them into check out mode.
D:\Test\Projects\RAS\cc\core.css D:\Test\Projects\RAS\css\core.css D:\Test\Projects\SFA\css\core.css D:\Test\Projects\SSD\css\core.css D:\Test\Projects\TSMS\css\core.css
For your reference here is the command line code to check out single file from VSS
ss checkout $/Test/Projects/RAS/cc/core.css
|