🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1785

Re: Need info on batch files under Windows 3.0

#1785
From: RP and Ainc
Date: Fri, 22 Mar 1991 05:22
23 lines
1196 bytes
> 
> I need to start up a batch file as an icon, but as far as I
> can see the PIF will not let you do this.  Does anyone know
> of a way to fire off a batch file WITHOUT seeing a window
> open on the screen?
>
To verify if this can be done at all, try making a PIF file, and 
add its name to the "Load=" line in you WIN.INI file. If it comes up 
OK in iconic form, then there's hope...

> Related to this, is it possible to spawn a DOS application 
> from within a Windows app?  [enhanced mode of course! :) ]
> 

Try the WinExec call (documented in SDK Ref. 1). And make sure you 
check its status return.  All hell can break loose if it fails and 
you continue as normal...

Cheers,

Ramin Firoozye'
rp&A Inc.
San Francisco, CA.
Technical Details
Message-ID: <40445@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!portal!cup.portal.com!rpA-Inc
References: <1991Mar21.231852.11906@magnus.acs.ohio-state.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!portal!cup.portal.com!rpA-Inc
From: rpA-Inc@cup.portal.com (RP and Ainc)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Need info on batch files under Windows 3.0
Message-ID: <40445@cup.portal.com>
Date: 22 Mar 91 05:22:20 GMT
References: <1991Mar21.231852.11906@magnus.acs.ohio-state.edu>
Organization: The Portal System (TM)
Lines: 23