Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!gatech!howland.reston.ans.net!cs.utexas.edu!news.ti.com!ticipa!clw
From: clw@ticipa.pac.sc.ti.com (Chris Winemiller)
Subject: Re: Running DOS program from ST/V
Message-ID: <1995Mar4.215355.8249@ticipa.pac.sc.ti.com>
Organization: None
References: <bducharme.38.000A141B@riatax.com>
Date: Sat, 4 Mar 1995 21:53:55 GMT
Lines: 23

In article <bducharme.38.000A141B@riatax.com> bducharme@riatax.com (Bob
DuCharme) writes:

>I couldn't find anything in Smalltalk/V's (2.0 Win32) documentation about 
>running a DOS program from within a method. For example, say I just wanted to 
>pass the string "copy \autoexec.bat \autoexec.bak"

KernelLibrary
  winExec: 'command.com /c copy \autoexec.bat \autoexec.bak'
  cmdShow: 1  "governs how the window is displayed; 1 should be OK to use"

You can also use a PIF, something like this:

KernelLibrary
  winExec: 'myprog.pif parameter1 parameter2'
  cmdShow: 0 "zero should suppress display of the DOS window, if the
              pif is configured to run in a background window"

Chris
==============================================================
Chris Winemiller               Internet: clw@works.ti.com
Disclaimer: I do not speak for TI.
==============================================================
