TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: NAUMAN ABBASI
from: CAMERON CLARK
date: 1997-10-16 23:28:00
subject: Re: Visual Basic 4

NA> I want to make a shell that will run a DOS program but I want the DOS 
progr
NA> hidden as if its not there. Please help!
Under "shell" in help this follows:
Shell(pathname[, windowstyle])
The Shell function syntax has these named arguments:
Part     Description
pathname Name of the program to execute and any required arguments or command 
line switches; may include directory and drive.  May also be the name of a 
document that has been associated with an executable program.
windowstyle   Number corresponding to the style of the window in which the 
program is to be run.  If windowstyle is omitted, the program is started 
minimized with focus.
The windowstyle named argument has these values:
Constant Value     Description
vbHide   0    Window is hidden and focus is passed to the hidden window.
    so
    retVal = shell("c:\path\program.exe switches", vbHide)
    _should_ do it, but I've not tested it at _all_.
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.