home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / msdos / programm / 3224 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.8 KB  |  47 lines

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!cs.utexas.edu!natinst.com!news.dell.com!swrinde!ringer!mlevis
  3. From: mlevis@ringer.cs.utsa.edu (Mike Levis) (OS/2)
  4. Subject: Re: XCOPY in the background ?  Get OS/2?
  5. Message-ID: <1993Jan25.003552.22859@ringer.cs.utsa.edu>
  6. Organization: University of Texas at San Antonio
  7. References: <1jn040INN95i@flop.ENGR.ORST.EDU> <1jnmd4INNcmn@news.gac.edu>
  8. Date: Mon, 25 Jan 1993 00:35:52 GMT
  9. Lines: 36
  10.  
  11. In article <1jnmd4INNcmn@news.gac.edu> Anonymous U writes:
  12. >John Villalovos writes
  13. >DOS-programs
  14. >> >in the background (multitasking), so I can work in the foreground with  
  15. >another
  16. >> >program. (like in UNIX: 'command &' runs 'command' in the background)
  17. >> >I would prefer a unit or program in Pascal or a already compiled program.
  18. >> 
  19. >> Get OS/2.
  20. >
  21. >But does OS/2 have a feature like 'command &' in UNIX, so you don't have to  
  22. >switch to another shell window to do something else?
  23.  
  24. Yes.  You can use "start" and/or "detach" to do this.  Using "start"
  25. creates another window in which your program can use the keyboard, mouse,
  26. and video.  Using "detach" does not create a window, and it does not
  27. support the mouse, or the *physical* keyboard or video, although redirection
  28. is still supported.  Usually, "detach" is used on non-interactive programs
  29. (like a make-file) along with redirection, and "start" on everything else.
  30.  
  31. Examples:
  32.  
  33. [C:\] start xcopy c:\os2\apps\* a:
  34.    (xcopy in another window)
  35.  
  36. [E:\programming] detach make > compiler_errors.dat
  37.    (compile in the background, look at errors when its finished)
  38.  
  39. [D:\fonts] for %a in (*.zip) do start unzip %a
  40.    (lots of unzipping!!!)
  41.  
  42. -- 
  43. ======= Mike Levis   mlevis@ringer.cs.utsa.edu =======
  44. ::  ftp ftp-os2.nmsu.edu (128.123.35.151) for OS/2  ::  .--.
  45. ::  software & information.   Get /pub/os2/00Index  :: (OS/2)
  46. ::::::::  & /pub/os2/all/info/faq/faq20i.zip  ::::::::  ~--~
  47.