Steed
Steed

Reputation: 1300

SymStore - add multiple files

I am trying to add a bunch of .pdb files to the symbol server using symstore.exe. Not all the .pdb's in the dir, but a selection of them (based on date).

To add them in a single transaction I'm using symstore ... /f '@filelist.txt' where filelist.txt is a file containing the real .pdb one per line - just as the command-line help says:

/f File         Network path of files or directories to add.
                If the named file begins with an '@' symbol, it is treated
                as a response file which is expected to contain a list of
                files (path and filename, 1 entry per line) to be stored.

(This info exists only in command-line help to symstore, not in the corresponding online help page.)

This just doesn't work, it stores 0 files. I assume that this feature - adding multiple files from a file list - is just not really implemented.

Does anybody have success adding a list of files in a single transaction with symstore.exe?

Upvotes: 3

Views: 2276

Answers (1)

honzajscz
honzajscz

Reputation: 3098

Finally, I have figured that out. The feature with @ and the response file is actually supported.

After using the symstore's /o switch for debugging output I have noticed a weird character ÿþC in the error output

PS C:\Development\symstore add /f @C:\temp\dllsAndPdbsToAdd.txt /s C:\temp\symstore\ /t AwesomeProject 
SYMSTORE MESSAGE: 0 alternate indexers registered
SYMSTORE MESSAGE: LastId.txt reported id 8
SYMSTORE MESSAGE: Final id is 0000000008
SYMSTORE ERROR: Class: Internal. Desc: Failed to index C:\Development\AwesomeProject\ÿþC. Line: 169. Error 32

So I changed encoding of the @C:\temp\dllsAndPdbsToAdd.txt file in Notepad++ to ANSI and it worked.

Upvotes: 6

Related Questions