Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I load a simple script?

Tags:

windbg

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.

like image 711
mvwhyatt Avatar asked Feb 25 '26 15:02

mvwhyatt


1 Answers

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
like image 51
Thomas Weller Avatar answered Feb 27 '26 08:02

Thomas Weller