home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / bind812a.zip / makefolder.cmd < prev    next >
OS/2 REXX Batch file  |  1998-03-25  |  8KB  |  207 lines

  1. /* Recreate objects script.
  2.  *
  3.  * Generated via Object Desktop Package File 'Object Package'.
  4.  */
  5.  
  6. /* Register with REXX API extensions. */
  7. Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  8. Call SysLoadFuncs
  9.  
  10. CreateCollision = 'Update'
  11.  
  12. Call SysCls
  13.  
  14. /* Get COM port. */
  15. Say ' '
  16. Say 'Create Bind 8.1.2 for OS/2 folder and icons.'
  17. Say
  18. Say 'NOTE: This program needs to be executed from the base directory'
  19. Say '      of your working setup.'
  20. Say ' '
  21. '@pause'
  22.  
  23. Call CreateObjects
  24. Exit
  25.  
  26. CreateObject: procedure
  27.     Parse Arg Class, Title, Location, Setup, Collision
  28.     Say 'Creating ['Title']'
  29.     rc = SysCreateObject( Class, Title, Location, Setup, Collision )
  30.     If rc <> 1 Then
  31.         Say ' > failed to create ['Title' | 'Class'] at location ['Location']'
  32.     return rc
  33.  
  34. CreateObjects:
  35.  
  36. /* Figure out the directories involved. */
  37. current_dir = directory()
  38.  
  39.   rc = CreateObject( 'WPFolder',,
  40.     'BIND 8.1.2^for OS/2',,
  41.     '<WP_DESKTOP>',,
  42.     'NOTDEFAULTICON=YES;'||,
  43.         'NOPRINT=YES;'||,
  44.         'DEFAULTVIEW=CONTENTS;'||,
  45.         'SELFCLOSE=1;'||,
  46.         'ALWAYSSORT=YES;'||,
  47.         'OBJECTID=<Bind_8_1_2_for_OS_2>',,
  48.     CreateCollision )
  49.  
  50.   rc = CreateObject( 'WPShadow',,
  51.       'INSTALL.OS2',,
  52.       '<Bind_8_1_2_for_OS_2>',,
  53.       'SHADOWID='||current_dir||'\INSTALL.OS2',,
  54.       CreateCollision )
  55.  
  56.   rc = CreateObject( 'WPShadow',,
  57.       'SETUP.OS2',,
  58.       '<Bind_8_1_2_for_OS_2>',,
  59.       'SHADOWID='||current_dir||'\SETUP.OS2',,
  60.       CreateCollision )
  61.  
  62.   rc = CreateObject( 'WPUrl',,
  63.       'OS/2 Readme',,
  64.       '<Bind_8_1_2_for_OS_2>',,
  65.       'URL=file:///'||current_dir||'\doc\readme.html;',,
  66.       CreateCollision )
  67.  
  68.   rc = CreateObject( 'WPUrl',,
  69.       'Bind Documentation',,
  70.       '<Bind_8_1_2_for_OS_2>',,
  71.       'URL=file:///'||current_dir||'\doc\html\index.html;',,
  72.       CreateCollision )
  73.  
  74.   rc = CreateObject( 'WPUrl',,
  75.       'Bind Manuals',,
  76.       '<Bind_8_1_2_for_OS_2>',,
  77.       'URL=file:///'||current_dir||'\doc\man\index.html;',,
  78.       CreateCollision )
  79.  
  80.   rc = CreateObject( 'WPProgram',,
  81.       'NSLOOKUP^(Prompts for DNS name)',,
  82.       '<Bind_8_1_2_for_OS_2>',,
  83.       'NOPRINT=YES;'||,
  84.            'DEFAULTVIEW=RUNNING;'||,
  85.            'EXENAME='||current_dir||'\bin\nslookup.EXE;'||,
  86.            'STARTUPDIR='||current_dir||'\bin;'||,
  87.            'PARAMETERS=[DNS Name];'||,
  88.            'PROGTYPE=WINDOWABLEVIO;'||,
  89.            'NOAUTOCLOSE=YES',,
  90.        CreateCollision )
  91.                                                                                       
  92.   rc = CreateObject( 'WPProgram',,
  93.       'NSLOOKUP^(Interactive)',,
  94.       '<Bind_8_1_2_for_OS_2>',,
  95.       'NOPRINT=YES;'||,
  96.            'DEFAULTVIEW=RUNNING;'||,
  97.            'EXENAME='||current_dir||'\bin\nslookup.EXE;'||,
  98.            'STARTUPDIR='||current_dir||'\bin;'||,
  99.            'PROGTYPE=WINDOWABLEVIO',,
  100.        CreateCollision )
  101.  
  102.   rc = CreateObject( 'WPProgram',,
  103.       'NDC^(Prompts for Command)',,
  104.       '<Bind_8_1_2_for_OS_2>',,
  105.       'NOPRINT=YES;'||,
  106.            'DEFAULTVIEW=RUNNING;'||,
  107.            'EXENAME='||current_dir||'\bin\ndc.cmd;'||,
  108.            'STARTUPDIR='||current_dir||'\bin;'||,
  109.            'PARAMETERS=[Command: (status|dumpdb|reload|stats|trace|notrace|querylog|start|stop|restart)];'||,
  110.            'PROGTYPE=WINDOWABLEVIO;'||,
  111.            'NOAUTOCLOSE=YES',,
  112.        CreateCollision )                                                                                     
  113.                                                                                       
  114.   rc = CreateObject( 'WPProgram',,
  115.       'NDC^(Stop)',,
  116.       '<Bind_8_1_2_for_OS_2>',,
  117.       'NOPRINT=YES;'||,
  118.            'DEFAULTVIEW=RUNNING;'||,
  119.            'EXENAME='||current_dir||'\bin\ndc.cmd;'||,
  120.            'STARTUPDIR='||current_dir||'\bin;'||,
  121.            'PARAMETERS=stop;'||,
  122.            'PROGTYPE=WINDOWABLEVIO;'||,
  123.            'NOAUTOCLOSE=YES',,
  124.        CreateCollision )                                                                                     
  125.                                                                                       
  126.   rc = CreateObject( 'WPProgram',,
  127.       'NDC^(Reload)',,
  128.       '<Bind_8_1_2_for_OS_2>',,
  129.       'NOPRINT=YES;'||,
  130.            'DEFAULTVIEW=RUNNING;'||,
  131.            'EXENAME='||current_dir||'\bin\ndc.cmd;'||,
  132.            'STARTUPDIR='||current_dir||'\bin;'||,
  133.            'PARAMETERS=reload;'||,
  134.            'PROGTYPE=WINDOWABLEVIO;'||,
  135.            'NOAUTOCLOSE=YES',,
  136.        CreateCollision )                                                                                     
  137.                                                                                       
  138.   rc = CreateObject( 'WPProgram',,
  139.       'NDC^(Stats)',,
  140.       '<Bind_8_1_2_for_OS_2>',,
  141.       'NOPRINT=YES;'||,
  142.            'DEFAULTVIEW=RUNNING;'||,
  143.            'EXENAME='||current_dir||'\bin\ndc.cmd;'||,
  144.            'STARTUPDIR='||current_dir||'\bin;'||,
  145.            'PARAMETERS=stats;'||,
  146.            'PROGTYPE=WINDOWABLEVIO;'||,
  147.            'NOAUTOCLOSE=YES',,
  148.        CreateCollision )                                                                                     
  149.                                                                                       
  150.   rc = CreateObject( 'WPProgram',,
  151.       'NDC^(Status)',,
  152.       '<Bind_8_1_2_for_OS_2>',,
  153.       'NOPRINT=YES;'||,
  154.            'DEFAULTVIEW=RUNNING;'||,
  155.            'EXENAME='||current_dir||'\bin\ndc.cmd;'||,
  156.            'STARTUPDIR='||current_dir||'\bin;'||,
  157.            'PARAMETERS=status;'||,
  158.            'PROGTYPE=WINDOWABLEVIO;'||,
  159.            'NOAUTOCLOSE=YES',,
  160.        CreateCollision )                                                                                     
  161.                                                                                       
  162.   rc = CreateObject( 'WPProgram',,
  163.       'NDC^(Start)',,
  164.       '<Bind_8_1_2_for_OS_2>',,
  165.       'NOPRINT=YES;'||,
  166.            'DEFAULTVIEW=RUNNING;'||,
  167.            'EXENAME='||current_dir||'\bin\ndc.cmd;'||,
  168.            'STARTUPDIR='||current_dir||'\bin;'||,
  169.            'PARAMETERS=start;'||,
  170.            'PROGTYPE=WINDOWABLEVIO;'||,
  171.            'NOAUTOCLOSE=YES',,
  172.        CreateCollision )                                                                                     
  173.  
  174.   confFile = value('ETC',,'OS2ENVIRONMENT')||'\named.conf'
  175.   rc = CreateObject( 'WPProgram',,
  176.       'NAMED',,
  177.       '<Bind_8_1_2_for_OS_2>',,
  178.       'NOPRINT=YES;'||,
  179.            'DEFAULTVIEW=RUNNING;'||,
  180.            'EXENAME='||current_dir||'\bin\named.exe;'||,
  181.            'STARTUPDIR='||current_dir||'\bin;'||,
  182.            'PARAMETERS=-c '||confFile||';'||,
  183.            'MINIMIZED=YES;'||,
  184.            'PROGTYPE=WINDOWABLEVIO',,
  185.        CreateCollision )                                                                                     
  186.  
  187.   rc = CreateObject( 'WPShadow',,
  188.       'named.conf',,
  189.       '<Bind_8_1_2_for_OS_2>',,
  190.       'SHADOWID='||confFile,,
  191.       CreateCollision )
  192.  
  193.                                                                                       
  194.   rc = CreateObject( 'WPProgram',,
  195.       'HOST^(Prompts for IP)',,
  196.       '<Bind_8_1_2_for_OS_2>',,
  197.       'NOPRINT=YES;'||,
  198.            'DEFAULTVIEW=RUNNING;'||,
  199.            'EXENAME='||current_dir||'\bin\host.exe;'||,
  200.            'STARTUPDIR='||current_dir||'\bin;'||,
  201.            'PARAMETERS=[Enter IP to Lookup Hostname For];'||,
  202.            'PROGTYPE=WINDOWABLEVIO;'||,
  203.            'NOAUTOCLOSE=YES',,
  204.        CreateCollision )                                                                                     
  205.  
  206. return
  207.