Is it possible to put bunch of windbg commands in a file and issue single command to instruct windbg

Is there a way to execute a script of windbg commands from within command
window?

For eg. I would like to execute following commands:

ed kd_DEFAULT_MASK 0xf
!load \wdfkd.dll
!wdftmffile



Is it possible to put all these commands in a file and execute them from
within windbg as a single command.

Regds,

Put all these to a text file and run it as a script file.

$$><textfile.txt>
Thanks,
Anees

On 11/22/06, Praveen Kumar Amritaluru wrote:
>
> Is there a way to execute a script of windbg commands from within command
> window?
>
> For eg. I would like to execute following commands:
>
> ed kd_DEFAULT_MASK 0xf
> !load \wdfkd.dll
> !wdftmffile
> …
> …
>
> Is it possible to put all these commands in a file and execute them from
> within windbg as a single command.
>
> Regds,
>
>
>
> —
> You are currently subscribed to windbg as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
></textfile.txt>

yeah you can script to your hearts content take a look at $$<> commands in
windbg help file

all you have to do is create a text file with all the commands seperated by
a semicolon and save it somefoo.mysc or whatever you fancy and use $$<> $$<
$> or one of its variations to execute the script

On 11/22/06, Praveen Kumar Amritaluru wrote:
>
> Is there a way to execute a script of windbg commands from within command
> window?
>
> For eg. I would like to execute following commands:
>
> ed kd_DEFAULT_MASK 0xf
> !load \wdfkd.dll
> !wdftmffile
> …
> …
>
> Is it possible to put all these commands in a file and execute them from
> within windbg as a single command.
>
> Regds,
>
>
>
> —
> You are currently subscribed to windbg as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>