home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / execnet.zip / Readme.txt < prev   
Text File  |  1997-10-17  |  6KB  |  127 lines

  1. INTRODUCTION
  2. ----------------------------------------------------------------------------
  3. To start a program from the OS/2 workplace shell, a user may double-click
  4. - an executable file like *.exe
  5. - a program object create from the 'New Program' template.
  6. The second approach will usually be used to provide a program name 
  7. differently from the name of the executable file and additional parameters
  8. and settings like 'start minimized'. 
  9.  
  10. Unfortunately, program objects cannot be stored on network drives. 
  11. Executable files, however, can be stored on network drives and they can be
  12. given arbitrary names and parameters in the same way as it is possible with
  13. program objects. Thus, small executable files can be used to simulate the
  14. function of program objects for network drives.
  15.  
  16. 'ExecPM.exe' and 'ExecVIO.exe' are such small executable files which do
  17. nothing but execute their parameter line via a system call. They can be
  18. used e.g. to create folders of program start objects on network drives
  19. allowing users to login from any machine on a network without changing
  20. their working environment.
  21.  
  22. 'ExecPM.exe' can also be used to start VIO batch files without a visible
  23. window or icon on the screen. Any backup program or archiver able to
  24. handle extended attributes can backup the simulated program objects.
  25.  
  26.  
  27.  
  28. CONTENTS OF ARCHIVE
  29. ----------------------------------------------------------------------------
  30. The following files are contained in this archive:
  31.   Readme.txt        -  This file
  32.   ExecPM.EXE        -  Start object for PM programs and hidden batch files
  33.   ExecVIO.EXE       -  Start object for VIO programs
  34.   Exec.c             -  C source code
  35.   OpenDrv.cmd     -  Batch file to open a drive object
  36.  
  37.  
  38.  
  39. USE
  40. ----------------------------------------------------------------------------
  41. Simply copy 'ExecPM.exe' and 'ExecVio.exe' to a place where you can easily
  42. reach them, e.g. your templates folder. 
  43.  
  44. To create a program object 'My Program' on network folder 'X:\USER\MYSELF',
  45. copy 'ExecPM.exe' or 'ExecVIO.exe' to 'X:\USER\MYSELF' and rename it to
  46. 'My Program'. Open the 'Properties' dialog of 'X:\USER\MYSELF\My Program'
  47. and set the cursor to the 'Parameters' line. Enter the command line used to
  48. start the desired program, if necessary with a leading 'start' command. You
  49. may also provide parameters and program settings. 
  50.  
  51. A parameter '#0' will be replaced by the full path name of the simulated
  52. program object (here: 'X:\USER\MYSELF\My Program')
  53.  
  54.  
  55.  
  56. EXAMPLES
  57. ----------------------------------------------------------------------------
  58. You want to open 
  59. - the Netscape Navigator, available from net path 'X:\INTERNET\NETSCAPE'.
  60. - The WPS drive object for 'X:\'.
  61. - a command line window with 'X:\USER\ROLF\BCOS2' as the default directory.
  62. from icons stored in a folder 'X:\USER\ROLF\PROGRAMS' located on a Server.
  63.  
  64. - Copy ExecPM.exe to 'X:\USER\ROLF\PROGRAMS', rename it to 'Netscape'.
  65. - Open the properties dialog.
  66. - Enter 'start NETSCAPE.EXE -3' in the 'Parameters' line.
  67. - Enter 'X:\INTERNET\NETSCAPE' in the 'Working directory' line.
  68. - Use the 'Icon' page of the properties dialog to provide the proper icon.
  69. - Close the dialog.
  70. You may now start Netspace by double-clicking the 'Netscape' icon in your
  71. network folder.
  72.  
  73. - Copy 'OpenDrv.cmd' e.g. to the network path 'X:\Bin'.
  74. - Copy ExecPM.exe to 'X:\USER\ROLF\PROGRAMS', rename it to 'Drive X'.
  75. - Open the properties dialog.
  76. - Enter 'X:\BIN\OPENDRV.CMD X' in the 'Parameters' line.
  77. - Use the 'Icon' page of the properties dialog to provide the proper icon.
  78. - Close the dialog.
  79. You may now open drive X: by double-clicking the 'Drive X' icon in your
  80. network folder. This feature, the hidden start of a batch file, is also
  81. usefull on local drives.
  82.  
  83. - Copy ExecVIO.exe to 'X:\USER\ROLF\PROGRAMS', rename it to 'OS/2 Window'.
  84. - Open the properties dialog.
  85. - Enter 'CMD.EXE' in the 'Parameters' line.
  86. - Enter 'X:\USER\ROLF\BCOS2' in the 'Working directory' line.
  87. - Close the dialog.
  88. You may now double-click the 'OS/2 Window' icon in your network folder to
  89. open a command line window on 'X:\USER\ROLF\BCOS2'.
  90.  
  91.  
  92.  
  93. DISCLAIMER 
  94. ----------------------------------------------------------------------------
  95. The author of this program accepts no responsibility for damages that
  96. are caused by this program and make NO WARRANTY or representation,
  97. either express or implied, with respect to this software.  This software
  98. is provided "AS IS," and you, its user, assume the entire risk when you
  99. use it.
  100.  
  101. I do not promise that this software is free from any third party rights
  102. (but actually, its only 20 lines of source code)
  103.  
  104.  
  105.  
  106. LIMITATIONS
  107. ----------------------------------------------------------------------------
  108. The network drive must preserve extended attributes to store the parameters
  109. permanetely. This is the case for Netware with OS/2 support installed and 
  110. for pure OS/2 networks. NFS drives do not provide this feature.
  111.  
  112. Some programs do not like to be started indirectely. Use the 'start' 
  113. command or a batch file in the parameter line. 
  114.  
  115. If you want to start DOS programs use ExecPM.exe use the start command.
  116. Or recompile 'Exec.c' using a DOS compiler.
  117.  
  118.  
  119.  
  120. _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
  121. _/ Rolf Breuning                                - using OS/2 Warp 4 -
  122. _/ Bockerterstr. 35, 41748 Viersen, Germany
  123. _/ breu@?.rwth-aachen.de (replace '?' by 'eecs')
  124. _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
  125.  
  126.  
  127.