home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 158.img / HOTWIRE.ZIP / MACRO.DOC < prev    next >
Text File  |  1990-01-01  |  23KB  |  537 lines

  1.  
  2. HOT WIRE Version 1.0
  3.  
  4. Copyright (C) 1988, 1989, 1990 DATASTORM TECHNOLOGIES, INC.
  5. All Rights Reserved
  6.  
  7. ----------------------------------------------------------------------
  8. Example Macros:
  9.  
  10. These macro examples assume that you have already entered Shift-F5 to
  11. begin recording a macro starting from the appropriate command mode,
  12. and that you have entered the macro name and description.  The key
  13. sequence should be entered as shown.  Once entered, complete the
  14. macro recording process by entering Shift-F5.
  15.  
  16. On-line help for macros is available when the program is prompting you
  17. for a macro name after you have pressed Shift-F5.  It is also
  18. available after you have pressed Shift-F9 to select a macro to be
  19. played back.  Further details can be found in your HOT WIRE User's
  20. Manual.
  21.  
  22. ----------------------------------------------------------------------
  23.  
  24. NAME: COPYSUBT
  25. DESC: Copy subtree and its files
  26. MODE: GLOBAL
  27.  
  28. This macro will copy the current directory subtree structure to the
  29. designated target tree, and then will copy all files to the newly
  30. created subtree.  The result is identical to moving a directory
  31. structure except that the source subtree and files are left intact.
  32. This macro requires that both of the global parameters in the setup
  33. information screen are set to YES.  The target tree and directory will
  34. be selected during macro pauses.
  35.  
  36. Key Sequence:    Description:
  37.  
  38. F2               Enter the SETUP command mode
  39. G                Select GENERAL
  40. G                Select GLOBAL
  41. Y                Enter YES for "Include All Subdirectories"
  42. Y                Enter YES for "Match Subdirectories at Target"
  43. ESC              Return from GENERAL command mode
  44. Q                Return from SETUP command mode without saving changes
  45. C                Select COPY
  46. D                Select DIRECTORY STRUCTURE (without files)
  47. Shift-F8         Initiate a macro pause for target tree selection
  48. Shift-F8         Initiate a macro pause for target directory selection
  49. Alt-C            Select COPY ALL FILES
  50. Shift-F8         Initiate a macro pause for target tree selection
  51. Shift-F8         Initiate a macro pause for target directory selection
  52.  
  53. ----------------------------------------------------------------------
  54.  
  55. NAME: REMOTE
  56. DESC: Update remote's subtree
  57. MODE: GLOBAL
  58.  
  59. This macro is an example of how you might keep files updated between
  60. your laptop and desktop computers.  Assume that you have an identical
  61. subtree (not necessarily the entire directory tree) on each machine
  62. which you want to keep current each time you take your laptop away
  63. from your office or home.  In addition, you will want to update your
  64. desktop machine with any changes upon returning.  The idea is to copy
  65. all source files which don't exist or are newer than those on the
  66. target machine.  To minimize keystrokes, you will want to be able to
  67. run this macro from the DOS command line and locate the correct source
  68. subtree without having to traverse the tree.  The target machine will
  69. have to be started in slave mode before running the macro on the
  70. master machine.  To define this macro, begin with the highlight bar
  71. positioned on the desired source directory.
  72.  
  73. Key Sequence:    Description:
  74.  
  75. F2               Enter the SETUP command mode
  76. G                Select GENERAL
  77. F                Select FILE
  78. ENTER            Don't care
  79. N                Don't want to rename files at target
  80. N                Don't want to confirm before overwriting
  81. N                Don't overwrite newer files at target
  82. ENTER            Don't care
  83. Y                Enter YES to pause for unsuccessful copies
  84. ENTER            Don't care
  85. ENTER            Don't care
  86. G                Select GLOBAL
  87. Y                Enter YES for "Include All Subdirectories"
  88. Y                Enter YES for "Match Subdirectories at Target"
  89. ESC              Return from GENERAL command mode
  90. Q                Return from SETUP command mode without saving changes
  91. Shift-F6         Record current directory path
  92. Alt-C            Copy all files
  93. <target path>    Enter the entire target tree directory path (#:\...)
  94. ENTER            Accept target path (log target tree and locate path)
  95. F10              Select F10 for "EXIT TO DOS" prompt
  96. ENTER            Exit program
  97.  
  98.  
  99. ----------------------------------------------------------------------
  100.  
  101. NAME: TODAY
  102. DESC: Backup files changed today
  103. MODE: GLOBAL
  104.  
  105. This macro will tag all files on the currently displayed tree which
  106. have a date stamp matching the current system date.  All tagged files
  107. will then be copied to the root directory on the drive A floppy disk.
  108. Files which are still tagged after the macro has completed are those
  109. which were not successfully backed up.
  110.  
  111. Key Sequence:    Description:
  112.  
  113. F2               Enter the SETUP command mode
  114. G                Select GENERAL
  115. F                Select FILE
  116. ENTER            Don't care
  117. ENTER            Don't care
  118. ENTER            Don't care
  119. ENTER            Don't care
  120. ENTER            Don't care
  121. ENTER            Don't care
  122. Y                Enter YES for "Remove Tag After Successful Copy"
  123. ENTER            Don't care
  124. G                Select GLOBAL
  125. Y                Enter YES for "Include All Subdirectories"
  126. N                Enter NO for "Match Subdirectories at Target"
  127. ESC              Return from GENERAL command mode
  128. Q                Return from SETUP command mode without saving changes
  129. Ctrl-Home        Position highlight at root directory
  130. T                Select TAG
  131. D                Select DATES
  132. ENTER            Display system date in "FROM" entry
  133. ENTER            Select displayed date
  134. ENTER            Display system date in "THRU" entry
  135. ENTER            Select displayed date
  136. ESC              Return from GLOBAL TAG command mode
  137. Ctrl-C           Select COPY TAGGED FILES
  138. A:\              Type in this path
  139. ENTER            Select this target path
  140.  
  141. ----------------------------------------------------------------------
  142.  
  143. NAME: HOTKEY
  144. DESC: Run hot key on tagged files
  145. MODE: TREE
  146.  
  147. This macro executes a hot key on each tagged file in the tree.  The
  148. hot key is defined in advance by the user, and will use the file's
  149. path or name as a substituted argument.  This macro assumes that the
  150. files have already been tagged.
  151.  
  152. Key Sequence:    Description:
  153.  
  154. Shift-F7         Begin macro loop
  155. F4               Goto next tagged file
  156. <Hot Key>        Press the hot key to be executed
  157. Shift-F7         End macro loop
  158.  
  159. ----------------------------------------------------------------------
  160.  
  161. NAME: ARCHIVES
  162. DESC: Selective reset archive attrib
  163. MODE: GLOBAL
  164.  
  165. This macro will allow you to selectively reset the archive attribute
  166. for all files in the current subtree.  First make sure the global
  167. parameters are set correctly.  Then tag all files in the subtree which
  168. have their archive attribute set.  Next perform the unset attribute
  169. operation on all tagged files individually, pausing for confirmation.
  170. For each file, pressing ENTER will perform the unset operation, or
  171. pressing ESC will skip the unset operation.  Finally unset all the
  172. file tags in the tree.
  173.  
  174. Key Sequence:    Description:
  175.  
  176. F2               Enter the SETUP command mode
  177. G                Select GENERAL
  178. G                Select GLOBAL
  179. Y                Enter YES for "Include All Subdirectories"
  180. ENTER            Don't care
  181. ESC              Return from GENERAL command mode
  182. Q                Return from SETUP command mode without saving changes
  183. F5               Select to untag any tagged files in tree
  184. T                Select TAG
  185. R                Select ATTRIBUTE
  186. A                Type A for Archive
  187. ENTER            Select attribute entry
  188. ESC              Return from GLOBAL TAG command mode
  189. F4               Goto first tagged file in subtree
  190. A                Select ALTER (now in LIST command mode)
  191. Shift-F7         Begin a macro loop
  192. U                Select UNSET ATTRIB
  193. C                Select CURRENT FILE (if Fast Command Mode is NO)
  194. A                Type A for Archive
  195. Shift-F8         Begin a macro pause
  196. ENTER or ESC     Press enter or escape key to terminate macro pause
  197. F4               Goto next tagged file in subtree
  198. Shift-F7         Mark the end of the macro loop
  199. ESC              Return from ALTER command mode
  200. ESC              Return from LIST command mode
  201. F5               Select to untag all tagged files in tree
  202.  
  203. ----------------------------------------------------------------------
  204.  
  205. NAME: SEARCHTX
  206. DESC: Search text in tagged files
  207. MODE: TREE
  208.  
  209. This macro assumes that you've already tagged files in advance for
  210. viewing.  The idea is to start a macro loop which, for each tagged
  211. file, goes into the VIEW command mode, finds the first occurrence of
  212. the text being sought, and then initiates a macro pause.  The pause
  213. allows you to continue searches in the same file with F6 function key,
  214. or use any other VIEW command mode options (except for ones such as +,
  215. -, and FIND) until you press Shift-F8 to end the macro pause and
  216. continue to the next tagged file.
  217.  
  218. Key Sequence:    Description:
  219.  
  220. F4               Traverse to first tagged file
  221. V                Select VIEW
  222. F                Select FIND
  223. Shift-F8         Pause to enter text to be sought
  224. ENTER            Accept search text and start searching
  225. Shift-F7         Begin macro loop
  226. Shift-F8         Begin macro pause
  227. Shift-F8         End macro pause (this key will not be recorded)
  228. ESC              Return from VIEW mode
  229. F4               Goto next tagged file
  230. V                Select VIEW
  231. F                Select FIND
  232. ENTER            Start find operation
  233. Shift-F7         End macro loop
  234.  
  235. ----------------------------------------------------------------------
  236.  
  237. NAME: BACKUP
  238. DESC: Backup entire disk to drive A
  239. MODE: GLOBAL
  240.  
  241. This macro will copy all tagged files on a hard disk to floppy drive
  242. A, allowing you to utilize as much diskette space as possible, as well
  243. as preserving the directory structure of the disk.  This macro assumes
  244. that you have tagged all files on disk before starting.  As files are
  245. copied, their tags will be removed.  This allows you to repeat the
  246. macro several times while keeping track of the files which have not
  247. yet been successfully copied.  As a diskette fills up, the program
  248. will inform you that there is insufficient disk space remaining for
  249. the current file copy operation.  The amount of free disk space will
  250. be displayed along with this message.  At this point, you may decide
  251. to use a new formatted floppy and retry the current file copy
  252. operation, or you may decide that there is sufficient disk space
  253. remaining to continue copying other files.  After a complete tree
  254. traversal, the macro will terminate.  Any files which are still tagged
  255. can be backed up by starting the macro again.  You can continue this
  256. process until all files have been successfully copied.
  257.  
  258. Key Sequence:    Description:
  259.  
  260. F2               Enter the SETUP command mode
  261. G                Select GENERAL
  262. F                Select FILE
  263. ENTER            Don't care
  264. N                Don't want to rename files at target
  265. N                Don't want to confirm before overwriting
  266. Y                Enter YES to overwrite newer files at target
  267. Y                Enter YES to copy hidden and system files
  268. N                Enter YES to pause for unsuccessful copies
  269. Y                Enter YES to untag after successful copy
  270. ENTER            Don't care
  271. G                Select GLOBAL
  272. Y                Enter YES for "Include All Subdirectories"
  273. Y                Enter YES for "Match Subdirectories at Target"
  274. ESC              Return from GENERAL command mode
  275. Q                Return from SETUP command mode without saving changes
  276. Ctrl-Home        Goto the root directory of disk
  277. Ctrl-C           Select COPY TAGGED FILES
  278. A:\              Type in the target tree directory path
  279. ENTER            Accept target path and begin copying
  280.  
  281. ----------------------------------------------------------------------
  282.  
  283. NAME: PRINTLST
  284. DESC: Print list of small files
  285. MODE: GLOBAL
  286.  
  287. This macro will print a list of all files with sizes less than
  288. 10000 bytes to the display screen, pausing after each new screen of
  289. information.
  290.  
  291. Key Sequence:    Description:
  292.  
  293. F2               Enter the SETUP command mode
  294. G                Select GENERAL
  295. G                Select GLOBAL
  296. Y                Enter YES for "Include All Subdirectories"
  297. ENTER            Don't care
  298. ESC              Return from GENERAL command mode
  299. Q                Return from SETUP command mode without saving changes
  300. Ctrl-Home        Goto the root directory
  301. T                Select TAG
  302. S                Select SIZES
  303. 0                Type in 0 for "FROM" entry
  304. ENTER            Accept entry
  305. 9999             Type in 9999 for "THRU" entry
  306. ENTER            Accept entry and perform tagging operation
  307. ESC              Return from the TAG command mode
  308. P                Select PRINT
  309. Ctrl-L           Select LIST OF FILES, TAGGED FILES
  310. D                Select DISPLAY SCREEN
  311. ENTER            Pause between screens
  312.  
  313. ----------------------------------------------------------------------
  314.  
  315. NAME: SETCOLOR
  316. DESC: Prompts for each display color
  317. MODE: TREE
  318.  
  319. This macro will prompt you for each available display color.  For each
  320. input field, the macro clears it of its current contents, and then
  321. begins a macro pause.  The arrow on the display screen template points
  322. to the area which will be affected by the current input item.  If you
  323. want to retain the current color value, press the escape key.
  324. Otherwise input a new color value and press the enter key.  The macro
  325. pause will be automatically terminated.  After you have been prompted
  326. for all colors, the macro will escape from the SETUP command mode
  327. allowing you to save changes permanently, if desired.  Only fragments
  328. of the actual macro are shown here, but the idea should be clear.
  329.  
  330. Key Sequence:    Description:
  331.  
  332. F2               Enter the SETUP command mode
  333. C                Select COLORS
  334. B                Select BASE
  335. B                Select BORDERS\BACKGROUND
  336. TAB              Clear the input field
  337. Shift-F8         Begin a macro pause
  338. ENTER or ESC     Press enter or escape key to terminate macro pause
  339. P                Select PROMPTS/HEADERS
  340. TAB              Clear the input field
  341. Shift-F8         Begin a macro pause
  342. ENTER or ESC     Press enter or escape key to terminate macro pause
  343.   .                .
  344.   .                .
  345.   .                .
  346. ESC              Return from BASE
  347. T                Select TREE
  348. N                Select NORMAL
  349. TAB              Clear the input field
  350. Shift-F8         Begin a macro pause
  351. ENTER or ESC     Press enter or escape key to terminate macro pause
  352.   .                .
  353.   .                .
  354.   .                .
  355. ESC              Return from COLORS command mode
  356. ESC              Return from SETUP command mode
  357.  
  358.  
  359. ----------------------------------------------------------------------
  360.  
  361. NAME: GOTODIR
  362. DESC: Find 1st matching dir and exit
  363. MODE: TREE
  364.  
  365. This macro allows you quickly locate the first directory in the tree
  366. which matches any number of characters that you specify.  After you
  367. press enter, it will perform the search and, if found, make that
  368. directory the current DOS (origin/exit) directory, and then exit the
  369. program.  This example macro is most useful in a batch file run from
  370. the DOS command line where the macro is run as an argument to HOT WIRE
  371. (entered as HW /fGOTODIR).  If no directory is found to match your
  372. specification, an error message will occur, and the program will exit
  373. to the same directory that you started from.
  374.  
  375. Key Sequence:    Description:
  376.  
  377. Ctrl-F           Select the FIND directory command
  378. Tab              Clear the input field
  379. ????????         Enter this wildcard spec (default extension is .*)
  380. Home             Home the cursor
  381. Shift-F8         Begin a macro pause
  382. ENTER            Pressing enter will terminate the pause
  383. C                Select CHDIR command
  384. F10              Select F10 to get "Exit to DOS" prompt
  385. ENTER            Press enter to exit the program
  386.  
  387. ----------------------------------------------------------------------
  388.  
  389. NAME: DAILYLOG
  390. DESC: Locate and edit daily log file
  391. MODE: TREE
  392.  
  393. This macro is an example of how you might use the directory and file
  394. record mechanisms.  Assume that you keep a daily log file in a
  395. specific directory which you update frequently.  This macro will
  396. locate that directory, locate the file in the directory, and then run
  397. the editor program on that file so that you can enter your updates.
  398. When recording the macro, begin with the directory highlight bar
  399. located on the directory to be sought.  This is so you won't have to
  400. record any unnecessary traversal keys in the macro.  It doesn't
  401. matter, of course, which directory is currently highlighted when you
  402. play back the macro.  When you enter the LIST command mode, you will
  403. have to traverse to the correct file, however, and these keystrokes
  404. will be recorded.  In this example, we will use the FIND command to
  405. locate the file, and then record the file name in the macro using the
  406. record mechanism.  This process makes sure that the macro will only
  407. operate on the correct file.  If the directory or file name which you
  408. record is not found when you play the macro back, the program will
  409. give an error message and terminate the macro.  This macro presumes
  410. that you have defined an editor in the general setup information
  411. screen.
  412.  
  413. Key Sequence:    Description:
  414.  
  415. Shift-F6         Record current directory path in macro
  416. L                Select the LIST command mode
  417. F                Find file specification in the current file list
  418. DAILY.LOG        Type in the name of the file to be found
  419. Shift-F6         Record the file name in the macro
  420. A                Select the ALTER command
  421. E                Select the EDIT FILE command
  422. ESC              Return to LIST command mode
  423. ESC              Return to TREE command mode
  424.  
  425. ----------------------------------------------------------------------
  426.  
  427. NAME: DEL_SUBT
  428. DESC: Delete directory subtree
  429. MODE: GLOBAL
  430.  
  431. This macro will delete all the files in the current directory subtree,
  432. and then will remove the directories in the subtree.  First, make sure
  433. that the setup parameters are initialized correctly.  Then unset the
  434. read-only attribute on all files to be deleted.  Next delete all the
  435. files after confirming the operation.  Finally delete the directory
  436. structure to complete the macro.  This macro can be easily misused
  437. producing undesirable results, so make sure you are completely aware
  438. of its function before using it on your own system.
  439.  
  440. Key Sequence:    Description:
  441.  
  442. F2               Enter the SETUP command mode
  443. G                Select GENERAL
  444. G                Select GLOBAL
  445. Y                Enter YES for "Include All Subdirectories"
  446. ENTER            Don't care
  447. M                Select MISC
  448. ENTER            Don't care
  449. ENTER            Don't care
  450. ENTER            Don't care
  451. ENTER            Don't care
  452. ENTER            Don't care
  453. Y                Enter YES for "Confirm Deletes"
  454. ENTER            Don't care
  455. ENTER            Don't care
  456. ESC              Return from GENERAL command mode
  457. Q                Return from SETUP command mode without saving changes
  458. A                Select ALTER
  459. Alt-U            Select UNSET ATTRIB on ALL FILES
  460. R                Enter R for Read-Only
  461. ENTER            Perform unset operation
  462. ESC              Return from GLOBAL ALTER command mode
  463. Alt-D            Select DELETE ALL FILES
  464. Shift-F8         Initiate a macro pause for delete confirmation
  465. Y or N or ESC    Pressing Y, N, or ESC terminates pause (your answer)
  466. D                Select DELETE
  467. D                Select DIRECTORY STRUCTURE
  468.  
  469. ----------------------------------------------------------------------
  470.  
  471. NAME: EDITSLAV
  472. DESC: Edit file on slave machine
  473. MODE: LIST
  474.  
  475. Editing files or running other programs on the slave machine is not
  476. allowed by HOT WIRE.  However, you can define a macro which will move
  477. or copy the file or program to the master machine and then edit or run
  478. it locally.  This macro is an example of how you might edit a slave
  479. machine file by moving the file's contents to the master, running the
  480. EDIT FILE command, and then moving the updated contents back to the
  481. slave machine. This macro presumes that you have defined an editor in
  482. the general setup information screen.
  483.  
  484. Key Sequence:    Description:
  485.  
  486. M                Select MOVE
  487. C                Select CURRENT FILE
  488. C:\              Enter path of a master tree and press ENTER
  489. F7               Select F7 to change your current path
  490. C:\              Enter same path as above and press ENTER
  491. Shift-F8         Begin a macro pause and highlight the file
  492. Shift-F8         End the pause after it is highlighted
  493. A                Select ALTER
  494. E                Select EDIT FILE
  495. ESC              Return from the ALTER command mode
  496. M                Select MOVE
  497. C                Select CURRENT FILE
  498. #:               Enter current slave directory path and press ENTER
  499. F7               Select F7 to change your current path
  500. #:               Enter current slave directory path and press ENTER
  501.  
  502. ----------------------------------------------------------------------
  503.  
  504. NAME: MODEM
  505. DESC: Set up for modem connection
  506. MODE: TREE
  507.  
  508. This macro quickly sets up your communications parameters for
  509. establishing a remote connection through your modem.  This will be
  510. convenient if your direct connect cable and modem are attached to
  511. different COM ports, and you want to easily prepare for either type
  512. of connection.  The macro selects the COM port that your modem is
  513. connected to and sets the connection type to MODEM.  You may want to
  514. insert a macro pause at the block size input so that you can adjust it
  515. lower for faster retransmissions when errors occur.  Lastly, it saves
  516. the setup information so that you are ready to press F3 or Shift-F3 to
  517. start the connection.  A macro for DIRECT connections can be recorded
  518. in a similar manner.
  519.  
  520. Key Sequence:    Description:
  521.  
  522. F2               Enter the SETUP command mode
  523. G                Select GENERAL command mode
  524. C                Select COM
  525. 1                Default to COM1 (enter your modem COM port here)
  526. ENTER            Press Enter to move to next input item
  527. ENTER            Don't care (use default base address)
  528. ENTER            Don't care (use default IRQ line)
  529. M                Enter "M" for MODEM
  530. ENTER            Press Enter to move to next input item
  531. ENTER            Don't care (use default block size)
  532. ENTER            Don't care (use default I/O buffer)
  533. ENTER            Don't care (use default I/O pause)
  534. ESC              Return from GENERAL command mode
  535. S                Save the information and return
  536.  
  537.