How to nest .if token?

Scott Noone wrote:

> How to use environment variable in Windbg commands?

You can set an alias equal to an environment variable with as /e:

0: kd> as /e MyEnvVar HOMEPATH
0: kd> .echo ${MyEnvVar}
\Users\scott
0: kd> .logopen c:${MyEnvVar}\log.txt
Opened log file ‘c:\Users\scott\log.txt’

This obviously uses the environment variables from the machine running
WinDBG.

Another command I’ve never seen. I’m beginning to think that every
arbitrary 2- and 3-letter sequence represents a command or operator in
Windbg. It’s getting to be like Unix.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.