Re: Shell Alternative

 BBS: Inland Empire Archive
Date: 03-16-92 (08:20)             Number: 136
From: LOGAN ASHBY                  Refer#: NONE
  To: RICK PEDLEY                   Recvd: NO  
Subj: Re: Shell Alternative          Conf: (2) Quik_Bas
In a msg of <13 Mar 92>, Rick Pedley writes to Logan Ashby:

 RP > Logan, I've been using that shell substitute without incident, but can
 RP >  you tell me precisely where the SetShell and FixShell should go?
 RP > Once again, nice job.

    Sure, no problem. Flattery will get you d**n near
anything with some people. <grin> Both of these routines go
in the NuShell function, with SetShell coming right before
the DOS EXEC call, and FixShell coming right after.
Something like this:


 CALL SetShell                           '|<<---- Add this line
 '    - - - - - - - - - Existing code begins - - - - - - - - - -
 RegXs.ax = &H4B00                       '| Set up for CALL InterruptX
 RegXs.bx = VARPTR(ParmBlock)
 RegXs.dx = VARPTR(ChildName)
 RegXs.ds = VARSEG(ChildName)
 RegXs.es = VARSEG(ParmBlock)
 CALL InterruptX(&H21, RegXs, RegXs)     '| Call DOS EXEC function
 '    - - - - - - - - - - Existing Code ends - - - - - - - - - -
 CALL FixShell                           '|<<---- Add this line



seeya,
Logan

--- GoldED 2.31p
 * Origin: Lurker's Lounging Point (1:398/1.2)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET