home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / sliphw.zip / stagosrv.cmd < prev    next >
OS/2 REXX Batch file  |  1995-10-02  |  1KB  |  30 lines

  1. /* StaGoSrv.cmd Starts GoServ from command line */
  2. /* Method 1 (works):  Change to directory and call it */
  3. /* If this is used with
  4.    "call goserv", STAGOSRV.CMD won't finish until GoServ is finished.
  5.    If this is used with
  6.    "start goserv" then STAGOSRV.CMD exits and leaves GoServ running.
  7. */
  8. 'setlocal'
  9. 'K:'
  10. 'cd \goserv\server'
  11. 'start goserve HTTP'
  12. 'endlocal'
  13. 'exit'  /* leaving off the quotes makes this a Rexx command */
  14.        /* The exit is supposed to close the window running StaGoSrv.cmd*/
  15. /*******************************************************/
  16. /* Method 2 (also works): Using DeskMan/2 */
  17. /* If this is used, STAGOSRV.CMD exits and leaves GoServ running */
  18. /*
  19. object="<GoServe>"
  20. folder='Desktop'
  21. setupString='OPEN=DEFAULT'
  22.  
  23. rc=SysSetObjectData('<DeskMan1>',,
  24.                     'PerformSetup='object','folder','setupString';');
  25.      If rc <> 1 then do
  26.           Say  "DeskMan/2 PERFORM: error performing wpSetup on the "object" object!";
  27.           exit 99
  28.         end
  29. */
  30.