1.

Solve : how to run commands automatically?

Answer»

TYPE LEDS.DBG return
o 78 00
q

i remove @echo off

so code is
Code: [Select]If "%1"=="" GOTO error

If %1==on goto IsOn
If %1==off goto IsOff
goto error

:IsOn
>leds.dbg Echo o 78 00
goto continue
:IsOff
>leds.dbg Echo o 78 07
goto continue

:continue
>>leds.dbg Echo q

debug32.exe < leds.dbg

goto EOF

:error
echo You must SAY on or off!
:EO
so after remove @echo,i type leds on
it return
C:\>If on=="" goto error
C:\>
C:\>If on==on goto IsOn
C:\>leds.dbg Echo o 78 00
C:\>goto continue
C:\>leds.dbg Echo q
then debug32.exe run and stop for user further input (e.g o 78 00)

I'm not sure what is debug32...serching google some info
The only Debug32.exe I know is the one that came with "Pentium Processor
Optimization Tools" a book by Michael L.Schmit Academic Press
Professional 1995 ISBN 0-12-627230-1


DEBUG23 is a 32-bit debugger included on the disk with this book.
Debug32 is quite similar to DOS's DEBUG, but provides a number of minor
improvements and many advanced features, such as
32-bit register and addressing support
protected-mode debugging
DPMI application support
EMS memory support
i attached the debug32 here

[Saving space, attachment deleted by admin]Debug as you QUOTE SHOWS comes with windows, try replacing debug32.exe with debug.exe to see if that makes a difference.

Thanks for posting debug32, Ill take a look at it



Discussion

No Comment Found