Author Topic: Start a windows file with interrupts  (Read 8020 times)

nobody

  • Guest
Start a windows file with interrupts
« on: February 26, 2005, 07:16:42 PM »
Hi, im trying to make a simple program, thats start a program, but it doesn't work, i've tryed look at the interrupt 21/4B, but it doesn't work, ps i've looked at ralf browns online html interrupt list  http://www.ctyme.com/intr/rb-2939.htm
ps i want it to start a batch file, and also a vbs file

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Start a windows file with interrupts
« Reply #1 on: February 26, 2005, 08:00:48 PM »
Not *that* simple a thing to do. The "parameter block" has to be set up correctly (and pointed to correctly). I recall, in particular, having trouble with the command line. If you're not passing any parameters, you still need to have a zero "count", and a carriage return.

The only way you'll run a batch file would be to run command.com, with the correct command line to run your batch file, and exit. I'm not sure what a vbs file is - if it's compiled to an executable, it shouldn't be a problem.

If you can't get it working, post the code.

Best,
Frank

nobody

  • Guest
Re: Start a windows file with interrupts
« Reply #2 on: February 26, 2005, 10:09:46 PM »
lol okay, i was thinking it was a "easy" thing, but when its not, i don't want to do it... ps i have just made a small small code, think it was enough