home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / osotcmdf.txt < prev    next >
Text File  |  1997-03-14  |  2KB  |  54 lines

  1. OSOTCMDF - STARTING PROCESSES FROM AN OS/2 COMMAND FILE
  2. 01/30/96
  3.  
  4. =======================================================================
  5.            Starting Processes from an OS/2 Command File
  6.                      OS/2 2.1 and OS/2 2.11
  7. =======================================================================
  8.  
  9. Please Read Entire Document for Full Explanation of Procedures
  10. --------------------------------------------------------------
  11.  
  12. DESCRIPTION
  13.  
  14. If you want to start a DOS or WIN-OS/2 session and not have an OS/2 
  15. window appear before the start of the session, you can create OS/2 
  16. command files to start other processes or perform other tasks.
  17.  
  18. RESOLUTION
  19.  
  20. An object can be set up to open minimized; then any program started 
  21. from the session also opens minimized. This happens regardless of any 
  22. flags that are used, because a process must have focus, be in the 
  23. foreground, and be the active window, to give focus to another session. 
  24. When a session is minimized it cannot have focus, so it cannot give 
  25. focus.
  26.  
  27. If the program to be started is a full-screen application, an OS/2 Full 
  28. Screen program object can be associated with the command file. Within 
  29. the command, then, use an At sign (@) in front of all commands to avoid 
  30. displaying what is happening. For example:
  31.  
  32.    @START /FS "Bob's DOS Program" C:\OS2\MDOS\QBASIC.EXE
  33.    @EXIT
  34.  
  35. When the icon is selected, it opens in full-screen. Run the command, 
  36. and QBASIC is in front with a Window List entry stating "Bob's DOS 
  37. Program."
  38.  
  39. The same technique can be used for Windows programs.
  40.  
  41. Note: You do not have to state the program type with the START
  42.       command; the type of operating system the program requires
  43.       can be determined from the header of the EXE file.
  44.  
  45. ______________________________________________________________________
  46. IBM disclaims all warranties, whether express or implied, including 
  47. without limitation, warranties of fitness and merchantability with 
  48. respect to the information in this document. By furnishing this 
  49. document, IBM grants no licenses to any related patents or copyrights.  
  50. Copyright (c) 1994, 1996 IBM Corporation. Any trademarks and product 
  51. or brand names referenced in this document are the property of their 
  52. respective owners. Consult your product manuals for complete trademark 
  53. information. 
  54.