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

  1. /**/
  2. /*    WorkServ.CMD starts Slip Server and required daemons        */
  3. /* Attach this to a program reference object to run it with a click */
  4. /* Below, put start commands for all the daemons I want running  */
  5.  
  6. /* 
  7. This is how to get a colored window in WorkServ.
  8. Worksrvd.cmd contains "@sc bw" but this has no effect unless it is
  9. run from CMD.EXE. There is no color with "start worksrvd".
  10. To get color, it is not sufficient to just run it under CMD. The cmd 
  11. window has to be cleared with color BEFORE running Worksrvd.
  12. Hence we run two commands which can be combined using & like this:
  13. sc bw & worksrvd
  14. However, this won't work with "start" because the & is interpreted
  15. as a second program to run after "start" has finished. Hence, we
  16. put quotes aroud "sc bs & workservd" cause both of these commands
  17. to be passed as parameters to cmd.exe.
  18. */
  19.  
  20. /* Start the slip server */
  21. 'start "WorkSrvD" cmd /c "sc bw & worksrvd " '
  22.  
  23. /* 
  24. Lines below here are commented out. We assume that the Work machine is already
  25. on the Internet and is running these servers.
  26. /* Start the ftp server */
  27. 'start "FtpD" cmd /c "sc bw & staftpd " '
  28.  
  29. /* Start Web server */
  30. 'start stagosrv'   /* This takes the name GoServe HTTP automatically */
  31.  
  32. */
  33.