Problem with winexec using VB 3.0 app on Win 95 
Author Message
 Problem with winexec using VB 3.0 app on Win 95

Situation:
I have a VB 3.0 app that uses a Winexec API call to run a Batch File
(the Winexec call actually looks at a .PIF).  The app works fine on Win
3.1 systems but behaves strangely on Win 95 systems.  When the time
comes to execute the Batch File on a Win 95 system one of three things
will happen:

1.  Everything will work great!
2.  The DOS prompt will open and just wait for input.  The Batch file
doesn't run and I'll have to type EXIT to return to the VB app.
3.  The DOS prompt will open and the Batch File will attempt to run but
won't have enough Environment Space.

I've tried recreating the .PIF File and recompiling the code on a Win 95
system to no avail.  Has anyone else seen or encountered anything like
this before?

Any help would be appreciated.



Mon, 11 Oct 1999 03:00:00 GMT  
 Problem with winexec using VB 3.0 app on Win 95

Quote:

> Situation:
> I have a VB 3.0 app that uses a Winexec API call to run a Batch File
> (the Winexec call actually looks at a .PIF).  The app works fine on Win
> 3.1 systems but behaves strangely on Win 95 systems.  When the time
> comes to execute the Batch File on a Win 95 system one of three things
> will happen:

> 1.  Everything will work great!
> 2.  The DOS prompt will open and just wait for input.  The Batch file
> doesn't run and I'll have to type EXIT to return to the VB app.
> 3.  The DOS prompt will open and the Batch File will attempt to run but
> won't have enough Environment Space.

> I've tried recreating the .PIF File and recompiling the code on a Win 95
> system to no avail.  Has anyone else seen or encountered anything like
> this before?

> Any help would be appreciated.

Try playing with the .pif settings.  Try increasing the Environment
Space.  Try using SHELL("myfile.bat") to run the .bat file (or .pif)
instead of the API call.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CWW Development Company      | http://ng.netgate.net/~chriswsj
VB Spell Checking, Nutrition Analysis, Football Pool! & More!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Mon, 11 Oct 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problems using VB 3.0 on Win 95 ???

2. Problems using VB 3.0 on Win 95 ???

3. Problems using VB 3.0 on Win 95 ???

4. Problems using VB 3.0 on Win 95 ???

5. Problems using VB 3.0 on Win 95 ???

6. Problems using VB 3.0 on Win 95 ???

7. Problems using VB 3.0 on Win 95 ???

8. MS stance on setup wiz problem (VB 3.0 /Win 95 distrib to earlier Wins)

9. Font Common Dialg in Win 95 using VB 3.0

10. Common Dialog Problem (Win '95 VB 3.0)

11. WinExec and SW_HIDE in Win 95

12. VB 3.0 and Win 95

 

 
Powered by phpBB® Forum Software