PDA

View Full Version : OT: Batch execution of debug commands in DOS


whabang
03-19-2003, 08:20 AM
I'm trying to run the following debug command from autoexec.bat in DOS:

F 200 L1000 0
A CS:100
MOV AX, 301
MOV BX, 200
MOV CX, 1
MOV DX, 80
INT 13
INT 20

G

Is this possible or do I have to type it in manually every time? ( :-( )

olegil
03-19-2003, 08:32 AM
Ehm, why not put it in a file, run it through debug and then run the resulting file in the batch script? Doesn't that work anymore?

whabang
03-19-2003, 08:35 AM
Problem is that it's not supposed to become a file.

whabang
03-19-2003, 08:37 AM
Problem solved!
I put everything in a text file, and then sent it to debug using debug < commands.txt.