home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / injoy23.zip / install.cmd < prev    next >
OS/2 REXX Batch file  |  2002-07-07  |  6KB  |  70 lines

  1. /*
  2.  
  3.   REXX Script to create the InJoy desktop folder
  4.  
  5. */
  6.  
  7. if RxFuncQuery('SysLoadFuncs') then do
  8.    call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  9.    call SysLoadFuncs
  10. end
  11.  
  12. say "Creating Desktop Folder..."
  13.  
  14. dir = directory() || '\'
  15.  
  16. say "Creating folder"
  17. call SysCreateObject "WPFolder", "InJoy Internet Dialer", "<WP_DESKTOP>", "OBJECTID=<INJOYFOLDER>;ICONVIEW=FLOWED,NORMAL;ALWAYSSORT=NO;ICONFONT=10.Helv;BACKGROUND=" || dir || "back.bmp,T;ICONFILE=" || dir || "FOLDER.ICO", "replace"
  18. call SysCreateObject "WPFolder", "Extras", "<INJOYFOLDER>", "OBJECTID=<INJOYEXTRASFOLDER>;ICONVIEW=FLOWED,NORMAL;ALWAYSSORT=NO;ICONFONT=8.Helv;BACKGROUND=" || dir || "back.bmp,T", "replace"
  19. call SysCreateObject "WPFolder", "Packet Tracing", "<INJOYFOLDER>", "OBJECTID=<INJOYTRACEFOLDER>;ICONVIEW=FLOWED,NORMAL;ALWAYSSORT=NO;ICONFONT=8.Helv;BACKGROUND=" || dir || "back.bmp,T", "replace"
  20. call SysCreateObject "WPFolder", "Tools", "<INJOYFOLDER>", "OBJECTID=<INJOYUTILFOLDER>;ICONVIEW=FLOWED,NORMAL;ALWAYSSORT=NO;ICONFONT=8.Helv;BACKGROUND=" || dir || "back.bmp,T", "replace"
  21. call SysCreateObject "WPFolder", "Log Files", "<INJOYFOLDER>", "OBJECTID=<INJOYLOGFOLDER>;ICONVIEW=FLOWED,NORMAL;ALWAYSSORT=NO;ICONFONT=8.Helv;BACKGROUND=" || dir || "back.bmp,T", "replace"
  22. call SysCreateObject "WPFolder", "Information", "<INJOYFOLDER>", "OBJECTID=<INJOYINFOFOLDER>;ICONVIEW=FLOWED,NORMAL;ALWAYSSORT=NO;ICONFONT=8.Helv;BACKGROUND=" || dir || "back.bmp,T", "replace"
  23.  
  24. say "Creating program objects..."
  25.  
  26.  
  27. /* Extras */
  28. call SysCreateObject "WPProgram", "IP Forwarding" || d2c(10) || "(Disable)", "<INJOYEXTRASFOLDER>", "EXENAME=CMD.EXE;PARAMETERS=" || "/C " || '"' || "ipgate off" || '"', "replace"
  29. call SysCreateObject "WPProgram", "IP Forwarding" || d2c(10) || "(Enable)", "<INJOYEXTRASFOLDER>", "EXENAME=CMD.EXE;PARAMETERS=" || "/C " || '"' || "ipgate on" || '"', "replace"
  30.  
  31.  
  32. /* Tools */
  33. call SysCreateObject "WPProgram", "Reload DHCP Server" || d2c(10) || "Configuration", "<INJOYUTILFOLDER>", "EXENAME=" || dir || "SYNC.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "-dhcpd", "replace"
  34. call SysCreateObject "WPProgram", "Reload IPSec" || d2c(10) || "Configuration", "<INJOYUTILFOLDER>", "EXENAME=" || dir || "SYNC.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "-ipsec", "replace"
  35. call SysCreateObject "WPProgram", "Disconnect InJoy", "<INJOYUTILFOLDER>", "EXENAME=" || dir || "SETJOY.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "-D", "replace"
  36. call SysCreateObject "WPProgram", "Connect InJoy", "<INJOYUTILFOLDER>", "EXENAME=" || dir || "SETJOY.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "-CONNECT", "replace"
  37. call SysCreateObject "WPProgram", "KillJoy", "<INJOYUTILFOLDER>", "EXENAME=" || dir || "KILLJOY.EXE;STARTUPDIR=" || dir || ";ICONVIEW=FLOWED,NORMAL;ALWAYSSORT=YES;"
  38.  
  39.  
  40. /* TRACE */
  41. call SysCreateObject "WPProgram", "Delete Trace File", "<INJOYTRACEFOLDER>", "EXENAME=CMD.EXE;PARAMETERS=" || "/C " || '"' || "del " || dir || "packet.trc" || '"', "replace"
  42. call SysCreateObject "WPProgram", "Format Trace" || d2c(10) || "(to Screen)", "<INJOYTRACEFOLDER>", "EXENAME=" || dir || "IPFORMAT.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "-r packet.trc", "replace"
  43. call SysCreateObject "WPProgram", "IP Trace" || d2c(10) || "(Stop)", "<INJOYTRACEFOLDER>", "EXENAME=" || dir || "SYNC.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "-off:logbin", "replace"
  44. call SysCreateObject "WPProgram", "IP Trace" || d2c(10) || "(Start)", "<INJOYTRACEFOLDER>", "EXENAME=" || dir || "SYNC.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "-on:logbin", "replace"
  45.  
  46.  
  47. /* LOG FILES */
  48. call SysCreateObject "WPProgram", "DHCPd Logs", "<INJOYLOGFOLDER>", "EXENAME=" || dir || "LOGVIEW.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "LVIEW\DHCPD.INI", "replace"
  49. call SysCreateObject "WPProgram", "IPSec Logs", "<INJOYLOGFOLDER>", "EXENAME=" || dir || "LOGVIEW.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "LVIEW\IPSEC.INI", "replace"
  50. call SysCreateObject "WPProgram", "InJoy Logs", "<INJOYLOGFOLDER>", "EXENAME=" || dir || "LOGVIEW.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "LVIEW\INJOY.INI", "replace"
  51.  
  52.  
  53. /* Information */
  54. /*
  55. call SysCreateObject "WPProgram", "License"  || d2c(10) || "Agreement", "<INJOYINFOFOLDER>", "EXENAME=E.EXE;PARAMETERS=" || dir || "DOCS\" || "LICENSE.TXT", "replace"
  56. call SysCreateObject "WPProgram", "FAQ", "<INJOYINFOFOLDER>", "EXENAME=E.EXE;PARAMETERS=" || dir || "DOCS\" || "FAQ.TXT", "replace"
  57. call SysCreateObject "WPProgram", "Firewall" || d2c(10) || "Plugin", "<INJOYINFOFOLDER>", "EXENAME=E.EXE;PARAMETERS=" || dir || "DOCS\" || "FIREWALL.TXT", "replace"
  58. call SysCreateObject "WPProgram", "IPSec" || d2c(10) || "Plugin", "<INJOYINFOFOLDER>", "EXENAME=NETSCAPE.EXE;PARAMETERS=" || "file:///" || dir || "docs\ipsec\welcome.htm", "replace"
  59. call SysCreateObject "WPProgram", "Users Guide", "<INJOYINFOFOLDER>", "EXENAME=E.EXE;PARAMETERS=" || dir || "DOCS\" || "USERGUID.TXT", "replace"
  60. call SysCreateObject "WPProgram", "Readme", "<INJOYINFOFOLDER>", "EXENAME=E.EXE;PARAMETERS=" || dir || "DOCS\" || "README.TXT", "replace"
  61. call SysCreateObject "WPProgram", "Readme First", "<INJOYINFOFOLDER>", "EXENAME=E.EXE;PARAMETERS=" || dir || "DOCS\"  || "README.1ST", "replace"
  62. call SysCreateObject "WPProgram", "F/X Communications" || d2c(10) || "(www.fx.dk)", "<INJOYINFOFOLDER>", "EXENAME=NETSCAPE.EXE;PARAMETERS=" || "http://www.fx.dk", "replace"
  63. */
  64.  
  65.  
  66. call SysCreateObject "WPProgram", "Reload Firewall" || d2c(10) || "Configuration", "<INJOYFOLDER>", "EXENAME=" || dir || "SYNC.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "-firewall", "replace"
  67. call SysCreateObject "WPProgram", "Security Logs", "<INJOYFOLDER>", "EXENAME=" || dir || "LOGVIEW.EXE;STARTUPDIR=" || dir || ";PARAMETERS=" || "LVIEW\FIREWALL.INI", "replace"
  68. call SysCreateObject "WPProgram", "InJoy Dialer", "<INJOYFOLDER>", "EXENAME=" || dir || "IN-JOY.EXE;STARTUPDIR=" || dir || ";ICONVIEW=FLOWED,NORMAL;ALWAYSSORT=YES;"
  69. say "Folder creation completed!"
  70.