3

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?

Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575
Steed
  • 1,292
  • 1
  • 14
  • 33

1 Answers1

6

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.

honzajscz
  • 2,850
  • 1
  • 27
  • 29
  • To store a file in a compatible encoding one can use following PS command "$DllsPaths |Out-File C:\temp\dlls.txt -Encoding ascii" – honzajscz Apr 11 '16 at 00:42
  • 1
    Thanks for the answer! By now I've already worked it around (by adding all files in a folder), but this is still valuable. And another good example of people making standard feature their own way (which proves worse than the usual way). – Steed Apr 12 '16 at 13:29
  • Looks like the UTF-8 BOM. – Cameron Sep 19 '16 at 19:18