I want to experiment with using program scripts but WinDbg cannot find the script file. It says:
Command file execution failed, Win32 error 0n2
"The system cannot find the file specified."
The test script is from right out of WinDbg's help docs (saved as C:\tmp\file.txt):
.echo The first argument is ${$arg1}.
.echo The second argument is ${$arg2}.
The command I'm using is likewise from WinDbg's help docs:
$$>a< "C:\tmp\file.txt" myFirstArg mySecondArg
I've tried putting the file in different locations. I've also tried putting the script in the same directory as windbg.exe and not using a path. I am running as Administrator, so I doubt permissions are the problem.
Any ideas anyone?
Thanks, all.
Just escape the backslashes:
$$>a< "C:\\tmp\\file.txt" myFirstArg mySecondArg
Or omit the quotation marks as long as you don't have spaces in the file name:
$$>a< C:\tmp\file.txt myFirstArg mySecondArg
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With