Page 1 of 1 1
Topic Options
#66070 - 2002-06-04 11:41 AM Run command won't pass control back to script
anthony abraham Offline
Fresh Scripter

Registered: 2002-06-04
Posts: 7
Hi

Im running the following script and it appears to be working. However I need to press any key after the run command launches my external application. How can I change this so it launches the external app than passes control back to the file.

---------------------------------
IF INGROUP("Printer - OT20H5X1")
RUN "U:\DEFPRINT /D OT20H5X1"
ENDIF

IF INGROUP("Printer - OT20H8K1")
RUN "U:\DEFPRINT /D OT20H8K1"
ENDIF
---------------------------------

Thanks
Anthony

Top
#66071 - 2002-06-04 01:51 PM Re: Run command won't pass control back to script
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Run spawns a new process independent of your script. If you want your script to wait and continue running then use SHELL.

[ 04 June 2002, 13:51: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2235 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.366 seconds in which 0.281 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org