home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / SELFPR.ZIP / SELFPRG.TXT < prev   
Text File  |  1993-01-31  |  6KB  |  157 lines

  1. January 31 1993 
  2. Jim Moriartey CIS 76330,1613
  3.  
  4. DISCLAIMER
  5. I hope you find these programs useful, but I am
  6. in no way responsible for any damages caused directly or
  7. indirectly by the use or misuse of instself.cmd or the files
  8. generated by instself.cmd may cause.
  9. You are free to use instself.cmd and the generated Rexx 
  10. programs at your own risk with no obligation to me,the author. 
  11.  
  12. The file instself.cmd and the generated files are FREEWARE.
  13.  
  14.  
  15. FILES
  16.  
  17. instself.cmd          installs and generates the Rexx program.
  18. selfprg.dat            used by instself.cmd to create the program.
  19. selfprg.ico            the icon file set by instself.cmd.
  20. selfprg.txt             this text file.
  21. ------------------------------------------------------------
  22. This program will create an object that will display the archived 
  23. files in the directory of your choice. You may then enter the
  24. the archive file name to process. The program will unpack the
  25. file you have chosen to the directory of your choice and create
  26. objects of the programs and place them on the desktop.
  27. This is a faster method of setting up archived files as objects 
  28. then unpacking them and creating objects manually.
  29.  
  30. There are two Rexx programs in this package the first called
  31. 'instself.cmd'.This Rexx program will use the information that you
  32. provide and the file 'selfprg.dat' to generate a custom Rexx
  33. program and object.
  34. You can create as many program/objects for different achievers
  35. as you wish. Because the program information is keep in the Rexx
  36. program there are no data files to be handled.
  37.  
  38. INSTALLING THE REXX PROGRAM\OBJECT
  39.  
  40. NOTE there is NO error checking so if an error occurs the install
  41. or the program will fail.
  42. To install/create the Rexx program open a OS/2 window switch to the
  43. directory containing the Rexx files. 
  44. Type in 'instself' hit enter
  45. The first question that instself needs is what do you wish to call
  46. this program/object. The question it will ask is shown below.
  47.  
  48. Enter the Name You wish to Call this Program (Example dozip.cmd)
  49.  
  50. Answer the question and press enter
  51.  
  52.  The next question is the archiver that you wish to use if the 
  53. archiver is in the path just enter the name like 'PKunzip2' or if
  54. it is not in the path enter the full path and name 'C:\OS2\UNZIP'.
  55. If you are using a program like 'LH' that needs the switches add
  56. them at this time also like 'C:\OS2\LH x'
  57. The question it will ask is shown below.
  58.  
  59.  Enter the archiver You wish to Use (Example unzip unarj LH x)
  60.  
  61. Answer the Question and press enter
  62.  
  63.  The next question is the file extension to use enter zip for
  64. zip files and so on.
  65. The question it will ask is shown below.
  66.  
  67. Enter the Extension for the Archived files (Example zip arj lhz)
  68. this information is needed to display the files for you to choose
  69. in the program.
  70.  
  71. Answer the Question and press enter
  72.  
  73.  The next question is where do you want the program placed on your
  74. hard drive. Enter the full drive and path name, the directory must
  75. exist if it does not the install will fail.
  76. The question it will ask is shown below.
  77.  
  78.  Enter PATH to the Archive Files (Example C:\ZIPS)
  79. Directory must EXIST.
  80.  
  81. Answer the Question and press enter
  82.  
  83.  The install program will then ask you if the information is correct
  84. if you answer with a N you can reenter the information, if you answer
  85. Q the program will exit.
  86.  
  87. The program will then create a Rexx program with the options you 
  88. have chosen and create a object of the same name and place it on 
  89. the Desktop you can then drag and drop the object into any folder.
  90.  
  91. You can create as many of these Rexx program/objects as you
  92. like using different archivers paths etc. The install program 
  93. writes the data you supply into the Rexx program there are no data
  94. files or config files.
  95.  
  96. USING the NEW PROGRAM\OBJECT
  97.  
  98. You will find the new program/object on the desktop it will be 
  99. called the name you gave it during the install.
  100. To use the program just double click on the object, a OS/2 window 
  101. will open. You will be shown all of the archived files present,
  102. type in the file name you wish to unpack and press enter.
  103. The path is not needed just enter the file name.
  104. The next question is where do you wish the file to be unpacked
  105. if the directory does not exist the program will create it. Enter
  106. in the drive and directory name. Like 'C:\TEST'. You should always
  107. let the program create a new directory, when the program processes
  108. the directory it will create objects for ALL files in the 
  109. directory that meet the extension guidelines the program does not
  110. check for duplicate objects.
  111. If you unpack the archive to a directory containing some files 
  112. they may end up on the Desktop.
  113.  Next the program will display:
  114.  
  115.   the file name you wish to unpack
  116.   the path to where it will be unpacked
  117.  
  118. If you answer 'q' or 'Q' the program will exit.
  119. if you answer 'y' or 'Y' the program will create the directory
  120. if it does not exist it will then unpack the file into the
  121. directory. The program will then create a search file called
  122. temp.lst.
  123. The program will then read the search file and look for any
  124. files that end in
  125. bat
  126. BAT
  127. com
  128. COM
  129. exe
  130. EXE
  131. cmd
  132. CMD
  133. inf
  134. INF
  135. If it finds any 'inf' files it will create a 'View' object for the
  136. information files. The program assumes that 'VIEW.EXE' is in the
  137. path.
  138. It will then create objects and place them on the Desktop to be 
  139. used/deleted/moved as the user wishes.
  140.  
  141. ICON File Selfprg.ico
  142.  
  143.  The instself program sets the iconfile 'selfprg.ico' as the icon 
  144. for the generated Rexx program to change the iconfile just
  145. delete the file 'selfprg.ico' and copy a icon file you wish to use
  146. and rename it 'selfprg.ico' or change the Icon via the settings
  147. for the object. The Icon for the generated Rexx program will not 
  148. be displayed until a system reboot.
  149. This program was written on the 'fly' so the code is rough and 
  150. there are debuging variables still in the files.
  151. Beside the lack of error checking the programs run fine, if I get time
  152. I may add error checking (doubtful). The file selfprg.dat is the main 
  153. program and any one who wishes to add error checking or features 
  154. is welcome to do so.
  155.  
  156. January 31 1993
  157.