3

In command line I have run the following command: C:> set _NT_SYMBOL_PATH=srvc:\symbolshttp://msdl.microsoft.com/download/symbols enter image description here

But when I run the following command in adplus.exe

C:\Program Files (x86)\Debugging Tools for Windows (x86)>ADPlus -crash -pn w3wp .exe -o C:\dumps

I always get this warning: enter image description here

Rocky Singh
  • 15,128
  • 29
  • 99
  • 146
  • 1
    Just to be clear: you typed that in the same command prompt? If you want to set it permanently you want control panel, system and security, system, advanced system settings, advanced, environment variables - it'll then be set for all programs that you open after you've saved the change. – Rup May 04 '12 at 15:10

2 Answers2

4

When you run the set command in a CMD shell it will only set the environment variable for that particular CMD instance and typically child processes. From your question it looks like you may be running the set and ADPlus commands from different CMD consoles. If that's the case this is the source of the problem.

In order to set a permanent environment variable do the following

  • Click on the Start Menu
  • Right click on Computer and select Properties
  • Select Adavanced System Settings
  • Click Environment Variables
  • Click New on User variables for ...
  • Add the _NT_SYMBOL_PATH value there
JaredPar
  • 733,204
  • 149
  • 1,241
  • 1,454
2

The variable I'm using is formatted a bit differently (note the "symsrv" instead of just "srv", and the dll is referenced.) An example can be found on Microsoft KB 311503.

_NT_SYMBOL_PATH=symsrv*symsrv.dll*d:\debug\symbols*http://msdl.microsoft.com/download/symbols
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
Pedro
  • 12,032
  • 4
  • 32
  • 45