The /ps 99
means "skip the next 99 tokens, then take the next one, then skip the next 99, etc.". The 99 here happens to be arbitrary. She wants to take only one token, but there is no way to do that with the .foreach
command. She picked an arbitrarily high number to effectively tell it "skip the rest of the tokens".
The difference between /ps
and /pS
can be found in the WinDbg help file:
/pS InitialSkipNumber
Causes some initial tokens to be skipped. InitialSkipNumber specifies the number of output tokens that will not be passed to the specified OutCommands.
/ps SkipNumber
Causes tokens to be skipped repeatedly each time a command is processed. After each time a token is passed to the specified OutCommands, a number of tokens equal to the value of SkipNumber will be ignored.