home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / util / rexx / MOOS.lha / MOOS / Tests / rexx_dos.output < prev    next >
Encoding:
Text File  |  1997-02-26  |  6.4 KB  |  239 lines

  1.  
  2.  
  3.  
  4. #### ReadArgs(string,template,options) #######################################
  5. -------------------- ReadArgs("mio tuo suo add","FILE/M,ADD/S,QUIET=Q/S","opt.*") 
  6. OPT.FILE.0 = 3
  7. OPT.FILE.1 = mio
  8. OPT.FILE.2 = tuo
  9. OPT.FILE.3 = suo
  10. OPT.ADD    = 1
  11. OPT.QUIET  = 0
  12. -------------------- ReadArgs("mio tuo suo add","FILE/M,ADD/S,QUIET=Q/S","opt.") 
  13. OPT.FILE.COUNT = 3
  14. OPT.FILE.0 = mio
  15. OPT.FILE.1 = tuo
  16. OPT.FILE.2 = suo
  17. OPT.ADD    = 1
  18. OPT.QUIET  = 0
  19. -------------------- ReadArgs("29 12 68 A D","ID/N/M,Append=A/S,Delete=D/S") -
  20. ID.COUNT = 3
  21. ID.0 = 29
  22. ID.1 = 12
  23. ID.2 = 68
  24. APPEND = 1
  25. DELETE = 1
  26.  
  27.  
  28.  
  29. #### Info(path,options) ######################################################
  30. -------------------- Info("SYS:","ex.") --------------------------------------
  31. VolumeName     System
  32. DateStamp      Wednesday 08-May-96 17:01:46
  33. NumSoftErrors  0
  34. UnitNumber     1
  35. DiskState      VALIDATED
  36. NumBlocks      57770
  37. NumBlocksUsed  48417
  38. BytesPerBlock  512
  39. DiskType       DOS3
  40. InUse          1
  41.  
  42.  
  43.  
  44. #### Delay(ticks) ############################################################
  45. -------------------- Delay(100) ----------------------------------------------
  46. 100 ticks == 2.00 secs...
  47. -------------------- Delay(50) -----------------------------------------------
  48. 50 ticks == 1.00 secs...
  49.  
  50.  
  51.  
  52. #### SetVar(name,value,options) ##############################################
  53. -------------------- SetVar("test",val) --------------------------------------
  54. 1
  55.  
  56.  
  57.  
  58. #### GetVar(name,options) ####################################################
  59. -------------------- GetVar("language") --------------------------------------
  60. language == english
  61. -------------------- GetVar("test","Exists") ---------------------------------
  62. 1
  63.  
  64.  
  65.  
  66. #### DeleteVar(name,options) #################################################
  67. -------------------- DeleteVar("test") ---------------------------------------
  68. 1
  69.  
  70.  
  71.  
  72. #### SplitPath(path,options) #################################################
  73. -------------------- SplitPath('DF0:foo/bar/moos-startup') -------------------
  74. moos-startup
  75. -------------------- SplitPath('DF0:foo/bar/moos-startup','Path') ------------
  76. DF0:foo/bar/
  77. -------------------- SplitPath('DF0:foo/bar/moos-startup','test.') -----------
  78. moos-startup
  79. test.DirPart  == DF0:foo/bar/
  80. Test.FilePart == moos-startup
  81.  
  82.  
  83.  
  84. #### MatchPattern(pattern,string,options) ####################################
  85. -------------------- MatchPattern("#?Con#?","L:Kingcon-handler") -------------
  86. 1
  87. -------------------- MatchPattern("#?Con#?","L:Kingcon-handler","Case") ------
  88. 0
  89.  
  90.  
  91.  
  92. #### AddPart(dirname,filename) ###############################################
  93. -------------------- AddPart("DF0:","bar") -----------------------------------
  94. DF0:bar
  95. -------------------- AddPart("RAM:foo","bar") --------------------------------
  96. RAM:foo/bar
  97. -------------------- AddPart("RAM:foo/","bar/sub_bar") -----------------------
  98. RAM:foo/bar/sub_bar
  99.  
  100.  
  101.  
  102. #### SameDevice() ############################################################
  103. -------------------- SameDevice("RAM:t","System:") ---------------------------
  104. 0
  105. -------------------- SameDevice("C:List","Devs:serial.device") ---------------
  106. 1
  107.  
  108.  
  109.  
  110. #### SameLock(path1,path2) ###################################################
  111. -------------------- SameLock("C:List","SYS:c/list") -------------------------
  112. SAME
  113. -------------------- SameLock("C:","SYS:c") ----------------------------------
  114. SAME
  115. -------------------- SameLock("C:","SYS:s") ----------------------------------
  116. SAME_VOLUME
  117. -------------------- SameLock("C:","RAM:") -----------------------------------
  118. DIFFERENT
  119.  
  120.  
  121.  
  122. #### MaxCli() ################################################################
  123. -------------------- MaxCli() ------------------------------------------------
  124. There are at most 7 Cli processes...
  125.  
  126.  
  127.  
  128. #### IsFileSystem(devicename) ################################################
  129. -------------------- IsFileSystem("CON:") ------------------------------------
  130. 0
  131. -------------------- IsFileSystem("RAM:") ------------------------------------
  132. 1
  133.  
  134.  
  135.  
  136. #### WriteBlock(file,string,options) #########################################
  137. -------------------- WriteBlock("T:prova","Test string...") ------------------
  138. Test string...
  139. -------------------- WriteBlock("T:prova","Test string...","Append") ---------
  140. Test string...Test string...
  141.  
  142.  
  143.  
  144. #### Examine(path,options) ###################################################
  145. -------------------- Examine("c:List","ex.") ---------------------------------
  146. DiskKey      32305
  147. DirEntryType FILE
  148. FileName     List
  149. Protection   prwed
  150. EntryType    -3
  151. Size         5108
  152. NumBlocks    10
  153. Comment      
  154. WeekDay      Saturday
  155. Date         25-Sep-93
  156. Time         05:08:40
  157. OwnerUID     0
  158. OwnerGID     0
  159.  
  160.  
  161.  
  162. #### ReadBlock(file,options) #################################################
  163. -------------------- ReadBlock("ENV:language") -------------------------------
  164. language == english
  165.  
  166.  
  167.  
  168. #### Execute(command,options) ################################################
  169. -------------------- Execute("Status FULL","out.") ---------------------------
  170. Process  1: stk  4096, gv 150, pri  99 Loaded as command: Enforcer
  171. Process  2: stk  6000, gv 150, pri   1 Loaded as command: Workbench
  172. Process  3: stk  4096, gv 150, pri   0 Loaded as command: rx
  173. Process  4: stk  4096, gv 150, pri   0 Loaded as command: L:WBStart-Handler
  174. Process  5: stk  4096, gv 150, pri   0 Loaded as command: Mungwall
  175. Process  6: stk  4096, gv 150, pri   0 Loaded as command: sushi
  176. Process  7: stk  4096, gv 150, pri   0 Loaded as command: Status
  177.  
  178.  
  179.  
  180. #### ExAll(pattern,options) ##################################################
  181. -------------------- ExAll("devs:#?.device","ex.") ---------------------------
  182. Name hardfile.device
  183. Name serial.device
  184. Name 8n1.device
  185. Name parallel.device
  186. Name clipboard.device
  187. Name printer.device
  188. Name narrator.device
  189. Name mfm.device
  190. Name fmsdisk.device
  191. Name v34serial.device
  192. Name artser.device
  193. Name ramdisk.device
  194. Name parnet.device
  195. Name BaudBandit.device
  196. -------------------- ExAll("Libs:xpk#?","ex.* Fields 14") --------------------
  197. Name xpkNUKE.library
  198. Prot rwed
  199. Name xpkFAST.library
  200. Prot rwed
  201. Name xpkNONE.library
  202. Prot rwed
  203. Name xpkmaster.library
  204. Prot rwed
  205. -------------------- ExAll("Libs:req#?","ex. Type 6") ------------------------
  206. Name reqtools.library.new
  207. Type FILE
  208. Size 50992
  209. Prot rwed
  210. WDay Friday
  211. Date 16-Feb-96
  212. Time 19:12:22
  213. Note 
  214. Name reqchange.library
  215. Type FILE
  216. Size 18104
  217. Prot rwd
  218. WDay Sunday
  219. Date 15-May-94
  220. Time 12:11:24
  221. Note 
  222. Name reqtools.library
  223. Type FILE
  224. Size 43628
  225. Prot rwed
  226. WDay Sunday
  227. Date 07-Aug-94
  228. Time 12:31:32
  229. Note 
  230. Name req.library
  231. Type FILE
  232. Size 18436
  233. Prot rwed
  234. WDay Monday
  235. Date 31-Jan-94
  236. Time 23:26:22
  237. Note 
  238.  
  239.