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

  1. /**/
  2. /*    HomeServ.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 HomeServ.
  8. Homesrvd.cmd contains "@sc bw" but this has no effect unless it is
  9. run from CMD.EXE. There is no color with "start homesrvd".
  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 Homesrvd.
  12. Hence we run two commands which can be combined using & like this:
  13. sc bw & homesrvd
  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 & homeservd" cause both of these commands
  17. to be passed as parameters to cmd.exe.
  18. */
  19.  
  20. /* Start the slip server */
  21. 'start "HomeSrvD" cmd /c "sc bw & homesrvd " '
  22.  
  23. /* Start the ftp server */
  24. 'start "FtpD" cmd /c "sc bw & staftpd " '
  25.  
  26. /* Start Web server */
  27. 'start stagosrv'   /* This takes the name GoServe HTTP automatically */
  28.  
  29.