home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / blkos207.zip / BLKOS2.DOC < prev    next >
Text File  |  1993-05-26  |  37KB  |  845 lines

  1. BLKOS2.DOC FOR BETA VERSION 0.7
  2. May 17, 1993.
  3.  
  4. KUTEK/OMNIBUS SYSTEMS
  5. PO BOX 261
  6. FORKED RIVER, NJ  08731-0261
  7.  
  8. This material is copyright(c) C>BLACK,B.STONE,KUTEK 1992,1993
  9. all rights reserved-.
  10.  
  11. THIS IS A PRELIMINARY BETA VERSION .It MAY NOT BE BUNDLED OR SOLD.
  12.  
  13. YOU MAY UPLOAD THIS PACKAGE TO OTHER CONTACT POINTS AS LONG 
  14. AS NO FEE IS CHARGED FOR ACCESS to the files outside of normal subscriptions
  15. to those contact points.
  16.  
  17. You may modify this code for your own use but YOU MAY NOT UPLOAD
  18.  modifications as part of this package.ONLY the authors are authorized 
  19. to distribute modifications to this package.
  20.  
  21. REGISTRATION FOR INDIVIDUALS IN NON-ORGANIZATIONAL ENVIRONMENT:
  22. The registration for BLKOS2 is a one time fee of $3.00(three) US for this and all future 
  23. versions which is to help defray the cost of obtaining OS2 development tools so that we
  24. can offer some of the best priced os2 SW around.We have VERY radical ideas 
  25. concerning SW pricing which we KNOW users will like.
  26.  
  27. CONTACT KUTEK FOR USE IN ORGANIZATIONAL SETTINGS.
  28.  
  29. FEATURES:
  30. ---REXX INTERPRET function with command line editing and history
  31.  
  32. ---expanded history functions
  33.  
  34. ---expanded command line editing functions
  35.  
  36. ---file name completion
  37.  
  38. ---run any command or program  on selectable groups of objects
  39.  
  40. ---global and local object searches(across entire system) and operations
  41.  
  42. ---manipulate the WPS directly from the command line to open filelist views of folders,
  43. start objects or open settings views.
  44.  
  45. ---attribute selector allows locating files on basis of date ,file attribute, time or 
  46. size in a very flexible way
  47.  
  48. ---full alias facility that gives hot key like access to your entire system.Both  named
  49. and key aliases are supported.
  50.  
  51. ---use all constucts of os2 batch language, os2 commands, external commands or 
  52. functions and all rexx constucts within a single rexx alias.
  53.  
  54. ---recursive directory delete, quick dir change and dir stack functions.
  55.  
  56. ---manage files using a text based search mode that simplfies finding what you want 
  57. anywhere on your system.
  58.  
  59. ADDITIONAL FEATURES COMING VERY SOON
  60.  
  61. the object configurator is an integral part of BLKOS2 that allows the easy configuration 
  62. of os2, win or dos sessions. It can immediately create or modify objects without the 
  63. necessity of writing rexx wps scripts and it creates a database of your objects so that 
  64. they  can be recreated at any time on any os2 equipped system.The presence of 
  65. BLKOS2 on the target system is NOT required for the object recreation process.
  66. The OBJECT CONFIGURATOR will soon be integrated into blkos2 and released 
  67. when tested.There is no additional fee for registered individual users of BLKOS2.
  68.  
  69. It is also our plan to integrate the capabilities gained through Dave Boll's RXU10
  70. rexx utility package into blkos2(esp making it multithreaded).
  71.  
  72.  
  73. ****READ THE UTILITY .CMD FILES THEMSELVES FOR INFO ON THE UTILITIES*****
  74. d.cmd  dd.cmd and in.cmd
  75.  
  76.  
  77. BACK UP YOUR SYSTEM BEFORE USING THIS PROGRAM!!!
  78. WE WILL NOT BE HELD RESPONSIBLE FOR ANY DATA 
  79. LOSS OR OTHER DAMAGE TO YOUR SYSTEM-
  80. THOUGH OUR TESTING DEMONSTRATES THAT IT IS SAFE,USE 
  81. AT YOUR OWN RISK !!!!!!
  82.  
  83. the pgm runs as a shell on top of the command line ,intercepts
  84. keystrokes and performs specified actions .
  85. The prgram has a full alias facility which can use OS2 , os2
  86. batch(CMD), or REXX commands freely in combination in
  87. your aliases.There are no limits on the size of
  88. an alias.BLKOS2 also allows various flexible search and
  89. run functions as well as control over the WPS from the command line.
  90. You need to have some  knowledge of rexx in order to use blkos2 
  91. most effectively-refer to the online rexx docs.
  92. INSTALLATION:
  93. You must have REXX installed on your os2 system.
  94. Blackstone requires the rexx updates in any of the following forms:
  95. rexx20.zip, the service pak, or os2 2.1
  96. The rexxutil functions will be automatically loaded if they are not active.
  97.  
  98. Modify the pather variable(in CAPS) at the top of the BLKOS2.CMD
  99. file to specify the locaton of blackstone's auxiliary work files
  100. .keeping all of the blackstone files in one dir is a good idea.
  101. Place blkos2's directory  in your dpath and path statements.
  102. Create  an os2 session object(windowed or FS,FS is faster,windowed
  103. is more flexible)
  104. and place the following in the parameter line:  /k blkos2.cmd.
  105. use 25 line video mode.You'll have to live with our ansi choices for the
  106. time being-make sure ansi is ON.The menus are intentionally 
  107. minimalist.
  108. You can also  change the runworkplace = CMD.exe
  109. to runworkplace=<path>BLKOS2.cmd and it will load
  110. automatically in all of your OS2 sessions as the shell.
  111.  
  112. add the following line to your STARTUP.CMD:
  113.  
  114. del pather\history\* /n
  115. replacing pather with it's setting and enclosing the above in single 
  116. quotes if your STARTUP.CMD  is a REXX file.
  117.  
  118. It is advisable to use a session hotkey facility such as QWIKSWCH
  119. to switch easily between windows.
  120. Modify the limtt var for the desired number of lines in the command history
  121. buffer and set the logon parameter to 1 if you want the log to be 
  122. active as default-you can switch it  on or off at any time from the 
  123. keyboard.see below.Note that only those commands or input issued directly through
  124. BLKOS2 appear in the log.
  125.  
  126. SETTING THE PROMPT COLOR:
  127. in the configure block the prpt variable sets the prompt color.Use standard
  128. ansi foreground color designators ie:31 -> red,32 -> green,33 -> yellow,
  129. 34-> blu,35->mag,36->cyan,37->white
  130.  
  131. SETTING THE SKIP VARIABLE: 
  132. slow drives like cdroms can really bog down
  133. a global search and by setting the skip variable in the configure block (at the top of
  134. the blkos2.cmd file )you can exclude such drives from global searches. the skip variable 
  135. is a space delimited string of drive specs in single quotes
  136. EXAMPLE to exclude drives c x and w set 
  137.  
  138. SKIP='C: X: W:'             quotes,colons,spaces, and capitalization REQUIRED
  139.  
  140. SETTING HOW BLKOS2 DOES IT'S SEARCHES IN THE SELECTOR:
  141. BLKOS2 is set up to search the entirety of the current drive if no drive
  142. or directory is entered in a select term(see below). If you prefer that it 
  143. only search the current directory and below thus giving a smaller pick
  144. list display then set  TOTDRV=0 in the configure block at the top of the BLKOS2.CMD
  145. file.HITTING ALT-S AT ANY TIME FROM THE MAIN PROMPT FLIPS THE 
  146. SEARCH MODE
  147.  
  148. PLACING THE BLKOS2 WINDOW:
  149. Keep the"collapsed"  window as a strip sized window at the bottom-
  150. you can immediatly go to maximized by hitting ALT and ENTER in 
  151. sequence.This will allow you to easily see a WPS file list that BLKOS2
  152. brings up-they do not come to the front of the os2 session window.
  153. Fixate the window size by left clicking on the title bar once while 
  154. holding down shift.
  155.  
  156. EXITING BLKOS2 WITHOUT CLOSING THE OS2 SESSION:
  157. Blkos2 can be exited at any time by typing exit on the command line and
  158. invoking the rexx interpret function(see below.). The session will remain open
  159. at the OS2 default command processor prompt.
  160.  
  161.  
  162. SPECIAL KEYS FROM THE MAIN PROMPT:
  163.  
  164. ALT-S: switches the search mode(entire drive or current dir and below)
  165.  
  166. F1: brings up help
  167.  
  168. F2- STARTS ALIAS CREATION MODE -just follow the on screen instructions.
  169. aliases can be saved to a permanent MASTER.ALS file found in
  170. blackstones dir and they will automatiaclly be reloaded when it
  171. is restarted.Aliases can be of any length and any rexx or cmd contruct
  172. can be used in them. external OS2 functions are used via a call 
  173. statement within quotes as in rexx.You do not use the comment to 
  174. specify that you are using rexx, just type in your instructions.
  175. The parameter variables are x.2 x.3.x.4.....x.n.These refer to parameters
  176. on the command line when the alias is issued as in %X parameters
  177. except that you can have an arbitrary number of them without using 
  178. shift.NOTE:  YOU START WITH x.2 FOR THE FIRST PARAMETER,x.3 
  179. FOR THE SECOND etc-THE x's MUST BE LOWER CASE.
  180.  
  181. If you are having trouble running an OS2 instruction,try putting it
  182. in quotes(not it's variables) or using the call statement(in quotes)
  183. Note: reusing an alias key erases the original.
  184. You can create key or character aliases.The alias creation process will 
  185. call epm as it's editor.key aliases only have a number as an identifier so
  186. you need to input the key combination into the comment so that you'll 
  187. remember it.
  188. Follow the instructions after pressing F2 to complete alias 
  189. creation/activation.
  190.  
  191. F3-- reloads the permanent aliases from the master.als file.
  192.  some sample aliases are included.Sometimes the comments are not 
  193. displayed correctly when using the F4 function,exit the F4 function
  194. by hitting ESC and then hit press F3 a couple of times.
  195.  
  196. F4--displays a selector list for the active aliases.use as a reference
  197. of what is currently active or start an alias directly by highlighting it
  198. and pressing enter. curently,aliases that require parameters must be
  199. started from the command line .
  200.  
  201. F5--brings the line constructed  with the selector to the command line for
  202. further editing before execution.Press F5 BEFORE enter or CTRL-F1
  203. when using the selector from the main prompt.This is useful for adding eg a file name
  204. to a long dir path found with the selector.
  205.  
  206. F6--rename an alias in the master file-type the alias key and then hit F6;
  207. follow on screen instructions
  208.  
  209. F7--remove an alias from memory-input the alias key and then hit F7
  210.  
  211. F8--remove an alias from the master file -input  the alias key and hit F8
  212.  
  213. NOTE: for key aliases you input the hexx number you see on the
  214. alias list in the first column in the above 3 functions.
  215.  
  216. F9--places a command from the history box onto the command line
  217. for editing
  218.  
  219. F10-places whatever is on the command line into the history buffer.
  220. useful if you forget to do something and don't want to retype what 
  221. has already been entered.
  222.  
  223. F11--char string search in file list. after placing a search string on the
  224. CL hit F11 before hitting enter.This searches through a drive's filelist
  225. for any occurrences of the search string and displays in a pick list.
  226. This is different than the normal file search in that it is doing a TEXT
  227. search of the FILELIST for ANY occurences ANYWHERE of the 
  228. specified pattern.The 2 styles of search should allow you to find 
  229. almost anything quickly and easily.When used without the attribute 
  230. function this applies to all search terms on the command line. To
  231. specify its use only for certain terms see attribute select below.
  232.  
  233. F12- starts a utility called keyhex which gives the hex representation
  234. for the next key pressed after F12.single byte chars are 2 digits and
  235. double are 4. observe the key alias funtion to see how they can be
  236.  used.Also refer to the master select statement in the program body.
  237.  
  238. THE INTERPRET REXX FUNCTION:
  239. ALT - ~(the key above tab and to the left of one) hit this after typing in
  240. a short one line rexx pgm to have it immedately interpreted and run.
  241. this is like the rexxtry command but better as you have history and line 
  242. editing available.separate statements that would appear on different
  243. lines in a normal rexx pgm by semicolons.A do loop must be a
  244. complete do loop on a single line-it cannot span multiple line entries
  245. Example: type
  246.  
  247. s=sysfiletree('c:\',stem,bs);do i=1 to stem.0;say stem.i;end
  248.  
  249. and hit alt - ~. the rexx file listing for the c drive will display.
  250.  
  251. Use ALT-~ to try out rexx commands or to verify syntax , usage,
  252. or function.
  253.  
  254.  
  255. THE SELECTOR FUNCTION:
  256. The selector function allows you to operate on groups of files with
  257. a single command, or to operate on a file or dir whose name is only
  258. partially specified or whose location is unknown.
  259. you do not issue a separate command in blkos2 for filename
  260. completion or the select function.Type your command and preface
  261. any item with a [ for the select to be activated. If you know
  262. that a variable refers to a dir then put a [ at the end of it and only
  263. dirs will be searched for/displayed for that variable/pattern.
  264.  
  265. example
  266. type copy  [c:co  [d:ab[
  267.  
  268. to select and complete and copy  
  269. c:\low\higher\higherstill\conflagration.exe to
  270. the directory d:\top\lower\lowerstill\stilllower\absolutezero
  271. chose from the displayed list.
  272. all commands and aliases can use this feature.
  273.  
  274. SELECTOR LIST CONTROLS:
  275. left arrow- tag entry and move scroll bar downward
  276. right arrow-untag highlighted entry
  277. up arrow-move scrollbar up
  278. down arrow-scrollbar down
  279. page up-previous page
  280. page down-next page
  281.  
  282. CTRL-up arrow: tags all entries
  283.  
  284. CTRL-down arrow-untags all entries
  285.  
  286. CTRL left arrow:scroll file list left
  287.  
  288. CTRL-right arrow:scroll file list right
  289.  
  290. HOME AND END-go to the beginning or end of the 
  291. displayed select list respectively
  292.  
  293. ALT left arrow- flips tags
  294.  
  295. a selected file listing will appear green.
  296.  
  297. THE WHERE FUNCTION:
  298. a [  BEFORE a filespec alone on the command linel  is the WHERE function
  299. or SELECT TO RUN- function -highlight an entry and hit enter if an 
  300. exe and that pgm will run, or use it to locate a file to route to the command line
  301.  
  302. a [  AFTER a filespec will search only for Directories matching the pattern
  303.  
  304.  
  305. EXAMPLE [f:cm displays all files in current dir and below starting with
  306. the letters "cm".
  307.  
  308. example: [*.sys displays all SYS files
  309. example:[ba[ searches for directories beginning with letters "ba"
  310. example:[ba*.cmd  searches for all CMD files beginning with  the letters
  311. ba
  312. Searches are not case sensitive.
  313.  
  314. THE GLOBAL SYSTEM WIDE WHERE FUNCTION:
  315.  
  316. the [[ (two unshifted brackets-> key to right of p) before a term or filespec is 
  317. the ALL DRIVE GLOBAL SEARCH/SELECT
  318. this will search all of your available hard drives for files matching the 
  319. input pattern,as above and is used in the same way as the [
  320.  
  321. example:[[*.exe lists all executables on your entire system.
  322.  
  323.  
  324. DO NOT LEAVE A SPACE BETWEEN THE BRACKETS AND THE
  325. FILE SPEC IN THE ABOVE.
  326.  
  327. A line at the command prompt  can have any number of terms to 
  328. complete or select BUT ONLY ONE TERM CAN HAVE MULTIPLE
  329. SELECTIONS.
  330. EXAMPLE:
  331. copy [*.cmd   [[xcv[
  332. select EITHER multiple .cmds OR multiple dirs starting with letters
  333.  xcv BUT NOT BOTH.In the first case multiple
  334. files are copied to one dir; in  the second case one file is copied to 
  335. multiple
  336. dirs. One line can have ANY number of filename complete searches 
  337. as long as only one  term has multiple selections.
  338.  
  339. GENERATING A "LIST OF FILES"  FILE  FOR INPUT TO A COMMAND 
  340. THAT USES SUCH:
  341.  
  342. some programs accept a file name for a file that contains a list 
  343. of file specs upon which that program should operate.When available
  344. generating such a list is desirable rather than using select to run 
  345. the pgm or command multiple times as the setup time for the 
  346. pgm/command is not repeatedly incurred.Any term on which you
  347. can use select can be made to generate a unique file list for that term
  348. and the filename and path is automatically passed to the command.
  349. The following is the command format for one such pgm-PKZIP from the pkzip docs:
  350.  
  351. PKZIP Usage: PKZIP (-b[path]) (options) zipfile (@list) (files..)
  352.  
  353. note the @list term.
  354.  
  355. let us assume we want to select files from the c:\ directory to 
  356. be placed in a zip file named Zippy.Note that the special 
  357. character @ is required to specify to pkzip which term is the
  358. listfile name.This is the BLKOS2 command line specification.
  359.  
  360. <command/pgm name>  ]<special character >[<search pattern
  361.  
  362. EXAMPLE: pkzip -r -p -ex zippy ]@[c:*
  363.  
  364. choose from the select list and then press enter and the
  365. command or pgm will be activated with the proper input list.
  366.  
  367. NOTE:even if the pgm does not require a special character
  368. the ] is necessary to activate the list generate function.
  369. Multiple terms on the command line can have unique lists.
  370.  
  371. example   doodad ]&[*.exe  /c /d  ]%[com   is entirely legal,
  372. a list is generated for each selected terms and passed
  373. to the command.
  374.  
  375. The list generator is usable at any time select alone or
  376. in combination with attribute select(see below)  is appropriate.
  377.  
  378. NOTE: the file lists generated are not deleted to avoid  waiting while the delete occurs.
  379. This is relatively unimporatnt as the lists are usually small in size and the file 
  380. names are used repeatedly so they are always being cyled at each use. In any case
  381. all of the list files are erased at boot.You can also wite an alias to delete these if they 
  382. bother you.When blkos2 is made multithreaded using the RXU10 function package
  383. this issue will disappear as the delete will be done in the background.
  384.  
  385. RECURSIVE SELECT WITHOUT ENTERING THE MENU:
  386. when you know that you want to operate on all files(or dirs) in a particular place then
  387. you can bypass the selector menu by using the following yet still have all those files
  388. or directories  processed.
  389. To process all files files matching the file spec in the  specified dirs and below
  390. append  [[ to the end of the file spec.To process all dirs matching the spec and below 
  391. append \[[ to the end of the dir spec.
  392.  
  393. EXAMPLE: we want to erase all *.exe files from c:\os2  and all sub dirs immediately 
  394. without the pick list.
  395. type del [c:os2\*.exe[[
  396.  
  397. EXAMPLE: we want to view the dir list for all dirs in c:\os2.NOTE:we can do this directly
  398. with dir  /s but this illustrates how \[[ functions and is used with pgms that don't
  399. have /s switches ie that don't recurse into sub dirs.
  400.  
  401. dir [:os2\[[
  402.  
  403. AN IMPORTANT NOTE ABOUT LONG FILE NAMES:
  404. Blkos2 will handle long file names in all operations except  as a search critria.
  405. That is,     -> copy ["i want a bug fixer"                   is ILLEGAL.
  406.  
  407. This is relatively unimportant for  searching  since generally a
  408. fragment of the first word will find the object.Once a long file name is found by the
  409. selector it is wrapped in quotes and correctly passed to the command line.
  410. Long file names in quotes on the cl that are not part of a select term are treated
  411. as a single word and are always correctly passed to a command. IT IS ALSO POSSIBLE
  412. to use the ? WILDCARD IN PLACE OF SPACES AND THE SELECT FUNCTION CAN 
  413. THEN BE USED IN THE NORMAL WAY.
  414.  
  415. thus copy [i?want?a?bug?        is LEGAL->note: no quotes.
  416.  
  417.  
  418. THE ATTRIBUTE FUNCTIONS:
  419.  
  420. TERMINOLOGY: ATTRIBUTE as used herein refers to any of these
  421. file characteristics:date, time; file attributes(archive, readonly, hidden,
  422. directory, system) and the file size.
  423.  
  424. The ATTRIBUTE SELECTOR is a filter function that lets you easily 
  425. specify selection criteria of the above attributes in the select list.
  426. Files which match the selection criteria are displayed in the select list.
  427. It is like a bandpass filter where the upper and lower limits are 
  428. independently settable , and there is additionally an equality function 
  429. and a band reject function.
  430.  
  431. FORMAT OF THE DISPLAYED INFO: when in the attribute mode the 
  432. time date field of the select list is in sorting format as follows
  433. 93/04/01/13/10     which corresponds to
  434. year(last 2 digits)/month/day/hour(24hour format)/minute.
  435.  
  436. FORMAT OF THE INPUT INFO:
  437.  
  438. DATES are input as 930401 (6digits)  corresponding in this
  439. case to April 1,1993
  440. TIMES are input as 2110 (4 digits)  coressponding to  9:10 PM
  441. or 0820 corresponding to 8:20 AM
  442. SIZES are 7 digit decimal numbers
  443. FILE ATTRIBUTES:the letters a,d,h,r,s for archive,directory,hidden,
  444. readonly,system respectively.
  445.  
  446.  
  447. SELECTING WITH ATTRIBUTE SPECIFICATION:
  448. type your command line using any select terms as usual.Instead 
  449. of hitting Enter, press CTRL and F1 simultaneously. The following 
  450. menu appears:
  451.  
  452.  
  453.                             SEARCH PATTERN co
  454.  
  455.   ╔═══════════════════════════════════════╗
  456.   ║Date  (low):         (high):                                              ║
  457.   ║Time  (low):         (high):                                             ║
  458.   ║Size  (low):         (high):                                              ║
  459.   ║──────────────────────────────────────-║
  460.   ║Attributes:                                                                   ║
  461.   ╚═══════════════════════════════════════╝
  462.  
  463. IMMEDIATELY hit tab to bring the cursor to the first date field or shift tab to 
  464. start at the attributes field
  465.  
  466. KEY CONTROL:
  467. TAB:moves forward through the menu
  468. Shift-TAB: moves backwards through the menu
  469. delete, <-, ->, backdelete are all active.
  470.  
  471. You activate a search criteria by placing an entry in the 
  472. appropriate field using  the above described date time size attribute formats.
  473.  
  474. 1)entries in the low fields activate the greater/later than function.
  475. 2)entries in the high field activate the less/earlier than function.
  476. 3)entries in both fields activate the range("bandpass") function.
  477. 4)an entry in the low field followed by an '=' activates the equal function.
  478. 5)Entries in both high and low fields with the low field entry suffixed by
  479. an uncapitalized 'i' activates the 'EVERYTHING BUT'("band reject"){i for inverse}
  480. function.
  481. 6)activate the "strict earlier than" function by inputting a low date suffixed by an 'e'
  482. and a low time. see below for definition of this function.
  483. 7)activate the "strict later than " function by inputting a low date suffixed by an 'l'(ell)
  484. and a low date. see below.
  485. 8)File attributes:attributes are input as a single string of letters
  486. such as "adh".
  487. searches on this criteria come in 2 varieties.Inputting
  488. any , singly or in combination, of  a,d,h,r,s activates a 
  489. search for files with at least that attribute/attribute combination.suffixing the string with 
  490. a  '/m' initiates  the MATCH attribute function-ONLY files with
  491. EXACTLY those attributes are displayed.
  492.  
  493. EXAMPLE: we want to find all .exe files on drive C created
  494. between 01/01/93 and 04/01/93, and between the hours of 
  495. 3PM and 9PM having a size of less than 500k and having  only the readonly
  496. file attribute(match).
  497.  
  498. Start this search by typing [c:*.exe and hit CTRL-F1.Hit tab and fill in the
  499. input list as follows:
  500.  
  501.         SEARCH PATTERN *.exe     <<-- note: this line only displays the search pattern-no
  502.                                                                   input here.
  503.  
  504.  ╔═══════════════════════════════════════╗
  505.  ║Date  (low):930101         (high):930401                       ║
  506.  ║Time  (low):1500             (high):2100                          ║
  507.  ║Size  (low):                        (high):500000                    ║
  508.  ║───────────────────────────────────────║
  509.  ║Attributes: r/m                                                             ║
  510.  ╚═══════════════════════════════════════╝
  511.  
  512. press enter to start the search and the select list will appear in a few
  513. seconds.
  514.  
  515. A NOTE ABOUT THE ENDPOINTS:in the range select the relations are
  516. greater than or equal to, and less than or equal to.The 'everything but'
  517. function is a simple logical inversion of those functions and thus the 
  518. endpoints are not included(ie the = is lost).
  519.  
  520. IMPORTANT NOTE: specifying a low date and a low time alone does NOT give
  521. you a pure "later than" function such as all files created after 
  522. 4pm ,04/10/93, Rather, it gives all files created on this and all subsequent days
  523. which were made later than the hour 4PM on each of 
  524. those days.Use the strict later/earlier than functions to perform this type
  525. of  search.(see above)
  526.  
  527.  
  528. INITIATING TERM BY TERM F11 TYPE SEARCHES: as mentioned above,
  529. if you press f11 without entering the attribute function then ALL selects
  530. on the Command line use the F11 style search. To choose  F11 searches for
  531. specific terms enter the attribute selector after composing the command 
  532. line(press CTRL-F1 instead of Enter),press f11 for terms you want the f11 search
  533. for while at the attribute menu for that term and hit enter-do this also if you enter
  534. attribute criteria.
  535.  
  536. NOTE: you can always move on from the attribute input list menu
  537. by presing enter even if no fields have been filled-this will then result
  538. in a normal non attribute selector function, with f11 type search if it was 
  539. pressed for that term.
  540.  
  541.  
  542. WORKPLACE SHELL FROM THE COMMAND LINE:
  543.  
  544.  
  545. ALT-ENTER-- from either selector or command line will open a 
  546. WPS folder filelist( FULL PATH ON CL IS NECESSARY ) or start a PGM OBJECT.
  547. to use from cl-input path of folder or pgm (including extension
  548. for pgms to start) and hit ALT ENTER.THE window will not come to the
  549. foreground if an exe-program objects are started minimized.
  550. -chose from os2 tasklist.Note there is nothing we can do about this-it is
  551. a characteristic of the rexxutil function used to start the object.
  552. Append a SPACE and an s (uncapitalized)
  553. TO THE DIR/FILESPEC to open the settings view(the book) for the
  554. selected objects.You can open as many file lists or setting views at 
  555. one time as you desire.
  556.  
  557. EXAMPLE:   f:\os s  hit ALT- ENTER  opens os2 settings view
  558. EXAMPLE:  [*.exe    select and hit alt- enter starts the chosen pgm(s)
  559. EXAMPLE:  [c:os     and select opens the wps filelist for C:\OS2
  560. you can also press alt enter first and then enter alone after selecting
  561. for the same effect.Multiple selections to start pgms or open folders
  562. can be made from the selector pick list.Tag all items you want opened
  563. and hit alt-enter.
  564. EXAMPLE: <objid> and alt enter starts object objid.NOTE: THE OBJECT
  565. ID MUST BE SURROUNDED BY BRACKETS AS SHOWN;OBJECT IDs
  566. ARE ALSO CASE SENSITIVE.
  567. EXAMPLE: <WP_START>       and alt enter opens the startup folder
  568. EXAMPLE <WP_START>  s     and alt enter opens the startup folder
  569. settings view.
  570.  
  571.  
  572. CURSOR FUNCTIONS 
  573.  generally standard except that SHIFT-TAB is a
  574. true back tab of 8 spaces-tabs do not insert spaces.
  575. generally the cursor movement keys are congruent with the OS2
  576. command line cursor movement/ editing keys and the 4OS2 key 
  577.  functions with minor diffrerences in the ctrl key usage as below.
  578.  
  579. ALT-INS switches the type mode until the next time alt ins is issued.
  580. Used to go from insert to overstrike or vice versa
  581.  
  582. CURSOR MOVEMENT AND EDITING KEYS:
  583.  
  584. ctrl ->:  move right one word
  585. ctrl <-:  move left one word
  586. ctrl home: letters on CL from beginning to cursor position are deleted
  587. ctrl end: letters on command line from cursor position to end are deleted
  588. alt <-: deletes  previous word -4os2 style
  589. alt->:  deletes next word -4os2 style
  590. all other keys(arrows,home, end, page up,page down,delete,backspace)
  591. are standard
  592.  
  593.  
  594. HISTORY FUNCTIONS:
  595. The computer will beep when the latest entry in the history list is brought to the
  596. command line-this way you know that you have cycled through the entire history list.
  597.  
  598. PAGE UP  at the command line brings up the history list.The list is set
  599. for 1000 LINES.Actually you can set it to ANY size you want.
  600. scroll and select as in the selector.NOTE: in general all
  601. windows in BLKOS2 will function the same way and use the same keys.
  602. UP ARROW from the command line recalls the history directly to 
  603. the command line without displaying the history list box..
  604.  
  605. placing a letter or two on the CL and calling history will
  606. list only those commands that match the typed pattern;This works for
  607. both the UP ARROW  and PAGE UP keys.The commands are listed in
  608. LIFO order.
  609.  
  610. ESC key exits most functions.
  611.  
  612. **************MISC FUNCTION KEYS:******************
  613.  
  614. QUICKLY SWITCHING DIRECTORIES AND THE DIRECTORY "STACK":
  615.  
  616. Actually it's not a stack so much as a history list of dirs.
  617. To go immediately from directory A to directory B and have dir A placed in the
  618. directory history for immediate recall type B's  full  path on the command line
  619. and hit CTRL and-DOWN ARROW) simultaneously.You will immediately be in B
  620. and dir A will be in the DIR HISTORY list.To recall a directory(ie move back to it)
  621. you hit CTRL and UP ARROW ONCE.To see subsequent directories in the history  list
  622. you continue hitting the up arrow alone until you reach the dir you want and then hit enter
  623. to go there, or escape to abort. NOTE: you MUST hit ALT- right arrow to get a dir into
  624. the history list -they are never placed there automatically.
  625.  
  626.  
  627. ENTER-- initiates action on file/pgm higlighted in select list or starts a
  628. highlighted exe or initiates a command line action.
  629.  
  630. CTRL-ENTER-allows a statement on the CL to be interpreted as an
  631. os2 command rather than an alias of the same name(key)
  632. EXAMPLE: dir on cl followed by ctrl-enter gives  an os2 dir  listing rather
  633. than eg activating an alias named 'dir'.
  634.  
  635.  
  636. CTRL-TAB ---QUICK FILENAME COMPLETION:
  637. hitting CTRL-TAB after a filespec fragment is typed will present in
  638. sequence complete filespec matches to the pattern immediately to the
  639. left of the cursor FROM THE CURRENT directory.Useful anywhere on the command line.
  640. example: type dir o and hit CTRL- TAB to generate the line
  641. DIR C:\OS2.
  642. form of the filespec is the same as for selector, no [ are used.
  643.  
  644.  
  645. CTRL-F2: switches the log to file function on or off.When set  on, all
  646. commands from all blkos2 sessions are  logged to a file in the
  647. pather\history directory named blk.log. The entries are in the folllowing
  648. format:
  649. <session id number> <time> <date> <command>
  650.  
  651. to find out what the session id is for a session type(while in that session)
  652.  
  653. say idd 
  654.  
  655. and hit ALT -`(the rexx interpret function). The number 
  656. displayed is the session id
  657. You can set the logging function default on or off by setting the
  658. variable logon in the configure block  at the top of the
  659. blkos2.cmd file to 1 or 0 respectively.It is recommended that 
  660. you set this on and activate os2 undelete so that you can 
  661. recover anything you might accidentally lose or until you 
  662. are comfortable with the safety of BLKOS2.
  663.  
  664. GENERAL INFO:
  665. file specs are in the form X:filename.ext- wildcards allowed.names are
  666. completed by the select function .Generallythe  first \ is not used in blkos2 functions.
  667. example: copy [c:os2\mdos\vcdrom.sys
  668.  
  669. see the sample master.als for parameter usage note  parameter index
  670. is  +1 above what a % parm would be eg %1 would be x.2  so the first parameter
  671. used is x.2
  672.  
  673.  
  674.  
  675. NOTE:ALIASES IN THIS SHELL CANNOT  BE CALLED BY OTHER 
  676. PROGRAMS OR BATCH FILES, but they can refer to themselves.
  677.  
  678. USE OF SAMPLE ALIASES:
  679. NOTE: ALIASES ARE CASE SENSITIVE.
  680.  
  681.  
  682. t alias
  683. ALARM.CMD is a simple chron program that will issue an alarm or
  684. start a pgm  or issue a command at a set time--resolution of the 
  685. timer is about +-20 seconds-this alias starts ALARM.CMD
  686. t <time> < command> <parms>
  687. example t 123800 start /c /b pkzip zip c:\os2\*.* starts zip process at
  688. 12:38:00 PM +-20 sec
  689.  
  690. SHOW alias ---lists the lines of an alias on the screen
  691. show <alias key>
  692. EXAMPLE show show
  693.  
  694. e alias
  695. e ( [ )filename(fragment)>
  696.  
  697. starts epm to edit a(perhaps SELECTed) file
  698.  
  699. d alias
  700. d <dir name fragment>
  701. auto dir name complete qd.cmd
  702. example d wi   to switche to \os2\mdos\winos2 directory 
  703. DO NOT USE D.CMD WITH THE SELECTOR use CDD below.
  704.  
  705. refr  alias- to start online rexx reference
  706.  
  707. refc alias to start command reference
  708.  
  709. put alias
  710. ALT-p- to write a comment to an object 's ea's- this will be seen in the
  711. comment field in the object's settings book.Use GET.CMD  to
  712. view the comments or look at them in the settings view notebook.
  713. This function will be integrated into the selector list for easy use-
  714. the comments will be viewable directly in the selector object listing.
  715.  
  716. rec(ursive) alias: works just like 4os2 global-command operateds on current directory
  717. and all subs.
  718. EXAMPLE: rec copy *.exe c:\exes  copies all *.exe files in the current dir and all sub dirs
  719. to c:\exes.
  720.  
  721. cdd alias:
  722. input a full path to the dir you want to switch to or use the selector
  723. example
  724. cdd c:\os2\mdos
  725. cdd   [c:md and select as usual.
  726.  
  727. u5 alias:
  728. usage U5 <zip path and name> or  U5{ [[ or [ }<zip spearch spec>   for the selector.
  729.  
  730. this is a quick 'n dirty facility for easily unarchiving all your archived dls to
  731. quickly view or test/use the pgms therein. It handles arc , zip, arj,self extracting exe,and
  732. lhz files from one facility and with one command line. all you enter is the archive file
  733. path and name and U5 does the rest.the file is copied to a sub directory created in the
  734. dir where the archive is located, the files are unarchived therein, an option to start a
  735. dos session is presented-if you say no(type n) then the os2 session is available(blkos2
  736. is started as the command proc) and a wps directory list is opened.When you have 
  737. finished working with the archive type exit at the command line and hit enter .
  738. the temporary dir and all files therein are removed and the wps folder list is closed.
  739. Note that if you have a session set to the path of that temporary fiolder then the
  740. folder itself will not be removed.The folder is named the same as the archive file minus
  741. it's extension.
  742.  
  743. this alias must have  dd.cmd  and the archivers available to it(place the archivers in 
  744. your path-use os2 versions where available such as info zip for pkzip). You need to 
  745.  edit U5.CMD so that the dearchiver's names match those on YOUR system.
  746. lines with /?******?/ denote those you must edit-make sure the command line is 
  747. appropriate for  the archiver versions you are using.
  748.  
  749. U5.CMD can also be used stand alone in the WPS as a drag and drop dearchiver.
  750. attach an icon and just drop an archive on it to unarchive as above-a commandline
  751.  session is automatically started.
  752.  
  753. NOTE ON DD.CMD AND U5: there is apparently a bug in os2 that sometimes causes a
  754. dir to be non deleteable.Check that you have no sessions pointing to this undeleteable
  755. folder-if you do then it is probably not the os2 bug stopping you. If there are no
  756. such sessions then the dir will be removable on the next reboot- just use dd.cmd 
  757. to get rid of it. We know this is an OS2 bug because not even  RD will delete such
  758. a "stuck" folder.
  759.  
  760. lst    ([)<file spec>
  761. display a (perhaps selected) text or binary file on the screen.hit  x to exit, and  u
  762. to move to previous page, any other key to go to the next page.
  763.  
  764. cl    <no parameters>
  765. You must have  KILLEM.EXE in your path-this cmd closes ALL open sessions of 
  766. any type.
  767.  
  768. alt-z: this alias opens a desktop folder or standard OS2 object without having to 
  769. capitalize or bracket the object id or type the WP_ prefix.Works on those os2 
  770. objects with objid  of form <WP_START>
  771. example: type start and hit alt-z to open the  <WP_START>(startup) folder.
  772. type dalarm to start <WP_ALARM>. see the ini.rc file in  the  \os2 for the standard os2
  773. object ids for the applets etc.
  774.  
  775. fo: format a disk.
  776. usage fo <drive spec>
  777. examle    fo a:
  778.  
  779.  
  780.  
  781. If the shell dies history and temporary aliases ARE SAVED for
  782. each session and a restart reloads that session's history and temporary
  783.  aliases.You may or may
  784. not be able to issue a CTRL- C to a program or command to stop it
  785. -doing it with zip will stop the zip process,trying to stop a dir 
  786. command will kill the shell-in general .CMD files are stoppable.
  787.  
  788. ALL HISTORY AND TEMPORARY ALIASES ARE PERMANENTLY LOST 
  789. ON A REBOOT.IF YOU WANT TO SAVE THESE THEN DO NOT MODIFY
  790. YOUR STARTUP.CMD FILE AS INSTRUCTED ABOVE.
  791.  
  792. PLEASE PAY PARTICULAR ATTENTION TO MEMORY USAGE IN THE
  793. SESSIONS WHERE BLKOS2 IS RUNNING>USE OS2MEMU-
  794. we are interested in whether there is unreasonable growth in use of
  795. memory.
  796.  
  797. SPECIAL NOTE: there is a bug in OS2 rexx that does not allow the release 
  798. of memory committed to a so called stem variable.The drop function nor any other 
  799. nulling operation will release this memory.For this reason the session may show 
  800. a large memory usage after a global search. Until IBM fixes rexx the only thing to 
  801. do to get the memory back is to shut and then restart the blkos2 session.This is 
  802. the best that can be done without IBM fixing this bug in rexx .It affects all  OS2 REXX
  803. pgms that never terminate or do so infrequently.BLKOS@ uses the same stem 
  804. variables in it's operation and once maxed out will not get any larger in memory.
  805. In any case use of BLKOS2 for most operations reults in memory usage generally 
  806. under 500 KB.
  807.  
  808.  
  809. PLEASE ROUTE (RECEIVER ONLY) ANY COMMENTS TO
  810. CHARLENE BLACK at ->18 ON RIME (RELAYNET)
  811.  
  812. or contact us via US mail at the abocve address.
  813.  
  814. DEVELOPMENT IS CONTINUING AND ADDITIONAL FEATURES 
  815. ARE PLANNED-Send suggestions for features-we'll
  816. add them for you.planned additional features include global
  817. history,multithreading using the rxu10 functions, the absolutely
  818. essential colorized directories,sorting, a directory size calculator.
  819. and others..BLKOS2 is used
  820. by us on a daily basis and has been found to be very free of bugs 
  821. thus far.
  822.  
  823. The object configurator will be sent later when it has been 
  824. integrated into Blackstone.If you would like the current ,still very
  825. useful  standalone pgm, send C>BLACK a note.
  826.  
  827. We hope that  this program makes life at the OS2 
  828. command line simpler and more convenient for you.
  829.  
  830. Thank You for Testing BLACKSTONE.
  831.  
  832. CHARLENE BLACK                                       BILL STONE
  833.  
  834.  
  835. ACKNOWLEDGEMENTs: VERY SPECIAL THANKS to our BETA TESTERS
  836. who shall for the time being go unnamed, for their support and suggestions.
  837.  
  838. Thanks to Ken Arway for the BLKOS2 icon design.
  839.  
  840.  
  841.                              /****REXX RULES !!!!***/
  842.  
  843. This material is copyright(c) C>BLACK,B.STONE,KUTEK 1992,1993
  844. all rights reserved.
  845.