Welcome, Guest. Please login or register.

Author Topic: OT: Batch execution of debug commands in DOS  (Read 1551 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline whabangTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 7270
    • Show only replies by whabang
OT: Batch execution of debug commands in DOS
« on: March 19, 2003, 03:20:55 PM »
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? ( :-( )
Beating the dead horse since 2002.
 

Offline olegil

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 955
    • Show only replies by olegil
Re: OT: Batch execution of debug commands in DOS
« Reply #1 on: March 19, 2003, 03:32:27 PM »
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?
 

Offline whabangTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 7270
    • Show only replies by whabang
Re: OT: Batch execution of debug commands in DOS
« Reply #2 on: March 19, 2003, 03:35:38 PM »
Problem is that it's not supposed to become a file.
Beating the dead horse since 2002.
 

Offline whabangTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 7270
    • Show only replies by whabang
Re: OT: Batch execution of debug commands in DOS
« Reply #3 on: March 19, 2003, 03:37:19 PM »
Problem solved!
I put everything in a text file, and then sent it to debug using debug < commands.txt.
Beating the dead horse since 2002.