home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / haotd1_1.zip / HOSTHELP.TXT < prev    next >
Text File  |  1995-10-12  |  16KB  |  460 lines

  1. -----------------------------------------------------------------
  2.               HyperACCESS for OS/2 Host Commands
  3. -----------------------------------------------------------------
  4.  
  5. This file contains a summary of commands which HyperACCESS for
  6. OS/2's Host mode makes available to callers, and to the operator
  7. of the Host PC.
  8.  
  9. The Host PC operator can assign different types of access to
  10. callers.  If you are a caller, and you have questions about the
  11. privileges that the Host PC operator has assigned to you, please
  12. check with the Host PC operator.
  13.  
  14. Please note that, as the Host PC operator, you may log in to
  15. Host PC locally (i.e., from the keyboard of the Host PC) by
  16. pressing <Ctrl+L>, but only while Host is NOT waiting for calls.
  17. This enables you to test Host mode, without the need to call
  18. in from another PC.
  19.  
  20. This document contains separate sections which discuss:
  21.  
  22.    1. - Commands available to all callers
  23.    2. - Commands for callers with download privleges
  24.    3. - Commands for callers with upload privileges
  25.    4. - Commands for callers with file management privleges
  26.    5. - Commands used in batch files
  27.  
  28. NOTE: Options in brackets [] indicate optional parameters.
  29. Options separated by the pipe symbol | are mutually exclusive;
  30. you may specify just one of the given choices.
  31.  
  32.  
  33. ------------------------------------
  34. 1. - Commands available to all users
  35. ------------------------------------
  36.  
  37. HELP [topic]
  38.  
  39.     Displays the list of commands the caller can enter to
  40.     control the answering PC.  For more detailed help, enter
  41.     HELP followed by any command shown in this section.
  42.  
  43. QUIT, BYE or DONE
  44.  
  45.     Ends the call.
  46.  
  47. CHAT
  48.  
  49.     Puts the Host PC into chat mode, so the caller can type
  50.     messages to the Host operator.  If the Host operator is
  51.     there, he and the caller can take turns typing.  To
  52.     return to the host prompt, either may type <Ctrl+C>.
  53.  
  54. DIR [options] [path][filename]
  55.  
  56.     Displays directories of files on the Host PC's disks.
  57.     The filename can contain a drive or directory, and * or ?.
  58.     Callers who are restricted to a particular directory or
  59.     drive cannot examine files from other areas.
  60.  
  61.     Options
  62.  
  63.       /P Pause between screens
  64.     
  65.       /N New (long name) format
  66.  
  67.       /O:x Sort by order.
  68.  
  69.           Where x is one of the following:
  70.  
  71.           N   Sort by Name
  72.           E   Sort by Extension
  73.           S   Sort by Size
  74.           D   Sort by Date
  75.  
  76.       /S  List files in subdirectories
  77.  
  78.  
  79. CHDIR path
  80. CD path
  81.  
  82.     Changes to the current directory of the Host PC.  (The
  83.     current directory is shown within the Host prompt).  Callers
  84.     who are restricted to a particular directory or drive can
  85.     change to its subdirectories, but cannot change to other
  86.     directories.
  87.  
  88. CLS
  89.  
  90.     Clears the Host PC's screen and places the prompt in the
  91.     upper left corner.
  92.  
  93.  
  94. -------------------------------------------------
  95. 2. - Commands for callers with download privleges
  96. -------------------------------------------------
  97.  
  98. NOTE: To make the Host PC send files from a directory AND it
  99. subdirectories, callers can enter HSEND, ZSEND, YSEND, GYSEND
  100. or KSEND, followed by a space, /S, and a filename.  For
  101. example:
  102.  
  103.           HSEND /S \DB\*.DAT 
  104.  
  105. would make the Host PC send files with the .DAT extension from
  106. the \DB directory and its subdirectories.
  107.  
  108.  
  109. SEND filename
  110.  
  111.     Sends a file from the Host PC to the caller's PC using Text
  112.     protocol.  Only ASCII files can be transferred with Text
  113.     protocol.  After entering this, the caller instructs the
  114.     communications software on his computer to capture text that
  115.     displays, then types <Enter> to make the Host PC begin
  116.     sending.  Callers can type <Ctrl+S> to suspend, and <Ctrl+Q>
  117.     to resume, and <Ctrl+C> to cancel during the transfer.
  118.  
  119. HSEND [/S] filename
  120.  
  121.     Sends a file or files from the Host PC to the caller's PC
  122.     using HyperProtocol.  This command can be used only by
  123.     callers whose communications software contains HyperProtocol.
  124.     For a single file, the caller enters HSEND and a filename;
  125.     the filename can include * or ? to specify file groups;
  126.     multiple filenames can be entered separated by spaces.
  127.     After entering this, the caller instructs the communications
  128.     software on his PC to begin receiving.
  129.  
  130. XSEND filename
  131.  
  132.     Sends a file from the Host PC to the caller's PC using
  133.     Xmodem protocol.  Since Xmodem cannot transfer multiple
  134.     files, the caller must enter the name of a single file
  135.     without * or ?.  After entering this, the caller instructs
  136.     the communications software on his PC to begin receiving with
  137.     Xmodem protocol.
  138.  
  139. YSEND [/S] filename
  140.  
  141.     Sends a file or files from the Host PC to the caller's PC
  142.     using Ymodem protocol.  For a single file, the caller enters
  143.     YSEND and the filename; the filename can include * or ? to
  144.     specify file groups; multiple filenames can be entered
  145.     separated by spaces. After entering this, the caller
  146.     instructs the communications software on his PC to begin
  147.     receiving with Ymodem protocol.
  148.  
  149. GYSEND [/S] filename
  150.  
  151.     Callers can use this command to make the Host PC send with
  152.     Ymodem-G protocol, which is faster than Ymodem. Instead of
  153.     acknowledging each received packet, it simply aborts a
  154.     transfer if an error occurs.  If both computers have
  155.     HyperProtocol, use it instead for the fastest, most reliable
  156.     transfers.
  157.  
  158. ZSEND [/S] filename
  159.  
  160.     Sends a file or files from the Host PC to the caller's PC
  161.     with Zmodem protocol.  For a single file, the caller enters
  162.     ZSEND and the filename; the filename can include * or ? to
  163.     specify file groups; multiple filenames can be entered
  164.     separated by spaces.  After entering this, the caller
  165.     instructs the communications software at his end to begin
  166.     receiving with Zmodem protocol.
  167.  
  168. KSEND [/S] filename
  169.  
  170.     Sends a file or files from the Host PC to the caller's PC
  171.     with Kermit protocol. For a single file, the caller enters
  172.     KSEND and a filename; the filename can include * or ? to
  173.     specify file groups; multiple filenames can be entered
  174.     separated by spaces.  After entering this, the caller
  175.     instructs the communications software on his PC to begin
  176.     receiving with Kermit protocol.
  177.  
  178. TYPE filename [/C]
  179.  
  180.     Displays contents of a text file stored on the Host PC.
  181.     Callers can use the text capture feature of HyperACCESS to
  182.     capture the text to a file.  During the display of the file,
  183.     HyperACCESS will display one screen at a time, then give
  184.     the caller the option to display another screen, display
  185.     the file continuously, or quit.  The caller can type
  186.     <Ctrl+S> to suspend display, <Ctrl+Q> to resume, and
  187.     <Ctrl+C> to cancel.
  188.  
  189.     If /C is specified, the file displayed without the "More,
  190.     Nonstop, Quit (M/N/Q) [M]?" prompt after each page.
  191.  
  192.  
  193. -----------------------------------------------
  194. 3. - Commands for callers with upload privleges
  195. -----------------------------------------------
  196.  
  197. NOTE: When telling the Host PC to receive a file by typing HREC,
  198. ZREC, KREC, YREC, or GYREC, callers can use these upload
  199. options:
  200.  
  201.     /O  Overwrite
  202.  
  203.     This causes the Host PC to overwrite existing files when it
  204.     receives files with the same filenames.
  205.  
  206.     /N  Newer
  207.  
  208.     This causes the Host PC to overwrite existing files when it
  209.     receives identically named files with a more recent time and
  210.     date.
  211.  
  212.     /P  Path
  213.  
  214.     This causes the Host PC to store files using directory names
  215.     included in received filenames.  (When sending the files,
  216.     the caller needs to instruct the communications software on
  217.     his PC to send the filenames' paths with the files.)
  218.  
  219.  
  220.  
  221. REC filename
  222.  
  223.     Makes the Host PC receive a file from the caller's PC using
  224.     Text protocol.  Only ASCII files can be transferred with
  225.     Text protocol.  After entering this, the caller instructs
  226.     the communications software on his PC to begin sending the
  227.     file using Text (or ASCII) protocol. To indicate the end of
  228.     the file, the caller can either type <Ctrl+C> or enter a
  229.     period on a line by itself.
  230.  
  231. HREC [/O] [/N] [/P] [path]
  232.  
  233.     Makes the Host PC receive a file or files from the caller's
  234.     PC using HyperProtocol (this command can be used only by
  235.     callers whose communications software contains
  236.     HyperProtocol).  To have the Host PC receive into its
  237.     current drive and directory, the caller enters just HREC; to
  238.     have it receive into another drive or directory, he enters
  239.     HREC and that drive or directory; to have it receive a file
  240.     and store it under a certain name, the caller enters HREC
  241.     and that filename.  After entering any of these, the caller
  242.     instructs the communications software on his PC to begin
  243.     sending with HyperProtocol.
  244.  
  245. XREC filename
  246.  
  247.     Makes the Host PC receive a file from the caller's PC using
  248.     Xmodem file transfer protocol.  XREC must be followed by a
  249.     single filename, which cannot contain * or ?. After entering
  250.     this, the caller instructs the communications software on
  251.     his PC to begin sending using Xmodem protocol.
  252.  
  253. YREC [/O] [/N] [/P] [path]
  254.  
  255.     Makes the Host PC receive a file from the caller's PC using
  256.     Ymodem protocol.  To have the Host PC receive into its
  257.     current directory, the caller enters just YREC; to have it
  258.     receive into another drive or directory, he enters YREC and
  259.     that drive or directory.  After entering this command, the
  260.     caller instructs the communications software on his PC to
  261.     begin sending using Ymodem protocol.
  262.  
  263. GYREC [/O] [/N] [/P] [path]
  264.  
  265.     Through modems with error-correction, callers can use this
  266.     command to make the Host PC receive with Ymodem G protocol,
  267.     which is faster than Ymodem.  Instead of acknowledging each
  268.     received packet, it simply aborts a transfer if an error
  269.     occurs.  If both computers have HyperProtocol, use it
  270.     instead for the fastest, most reliable transfers.
  271.  
  272. ZREC [/O] [/N] [/P] [path]
  273.  
  274.     Makes the Host PC receive a file from the caller's PC using
  275.     Zmodem protocol.  To have the Host PC receive into its
  276.     current directory, the caller enters just ZREC; to have it
  277.     receive into another drive or directory, he enters ZREC and
  278.     that drive or directory.  After entering this command, the
  279.     caller instructs the communications software at his end to
  280.     begin sending using Zmodem protocol.
  281.  
  282. KREC [/O] [/N] [/P] [path]
  283.  
  284.     Makes the Host PC receive a file from the caller's PC using
  285.     Kermit protocol.  To have the Host PC receive into its
  286.     current directory, the caller enters KREC alone; to have it
  287.     receive into another drive or directory, he enters KREC and
  288.     that drive or directory.  After entering this, the caller
  289.     instructs the communications software on his PC to begin
  290.     sending using Kermit protocol.
  291.  
  292.  
  293. --------------------------------------------------------
  294. 4. - Commands for callers with file management privleges
  295. --------------------------------------------------------
  296.  
  297. COPY source [destination]
  298.  
  299.     Copies the source file(s) to the destination file, drive, or
  300.     directory (similar to the OS/2 COPY command). This is solely
  301.     for managing files on the Host PC, not for copying between
  302.     PCs (which is done with commands such as SEND or REC).
  303.  
  304. ERASE filename
  305. DEL filename
  306.  
  307.     Deletes the file(s) from the Host PC (similar to the OS/2
  308.     DEL command).  The filename can include * or ?.
  309.  
  310. RENAME source destination
  311. REN source destination
  312.  
  313.     Changes the source filename to the destination filename. The
  314.     destination filename cannot already exist.
  315.  
  316. MKDIR directory
  317. MD directory
  318.  
  319.     Makes a new directory on the Host PC (similar to the OS/2
  320.     MKDIR command).
  321.  
  322. RMDIR directory
  323. RD directory
  324.  
  325.     Removes a directory from the Host PC (similar to the OS/2
  326.     RMDIR command).  Before a directory can be removed, any
  327.     files and/or subdirectories that it contains must first be
  328.     deleted.
  329.  
  330. MOVE source [destination]
  331.  
  332.     Moves one or more files from one directory to another
  333.     directory on the same drive.  The filenames can include * or
  334.     ?. Source and destination cannot be the same.
  335.  
  336.  
  337. ---------------------------------
  338. 5. - Commands used in batch files
  339. ---------------------------------
  340.  
  341. HyperACCESS has the ability to execute batch files (.BAT) from
  342. the Host prompt.  In these batch files, you can use any of the
  343. above commands, plus the commands below.  Such batch files are
  344. typically created and maintained by the Host PC operator,
  345. working at the Host PC.  However, you can also create batch
  346. files on other PCs and uploaded them to the Host PC for
  347. execution.  Any caller can execute batch files present in the
  348. directories that caller is authorized to access; any commands
  349. within the batch file that are beyond that caller's privileges
  350. are ignored.
  351.  
  352. CHOICE [/C<keys>] [/N] [/S] [text] 
  353.  
  354.     The CHOICE command is used in a batch file program to allow
  355.     a caller to make a selection.  The choice simply returns an
  356.     errorlevel to the batch file.  The batch program must
  357.     include subsequent commands that act upon every possible
  358.     condition and errorlevel.
  359.  
  360.     Parameters:
  361.   
  362.     Text
  363.  
  364.        This is the text specified in this parameter is displayed
  365.        to the user before the prompt.  If it is necessary to use
  366.        the switch character (/),include your text in quotes.  If
  367.        text is not specified, CHOICE will only issue the prompt.
  368.  
  369.  
  370.     Switches
  371.   
  372.     /C<keys>
  373.  
  374.        This switch defines the allowed keys in the prompt.  Each
  375.        choice will be separated by a comma. The choices will be
  376.        enclosed in brackets and a question mark is displayed at
  377.        the end.  If this switch is not specified, the default
  378.        choice of [YN] will be used.
  379.  
  380.     /N
  381.  
  382.        This will allow CHOICE to display a prompt without
  383.        displaying the available choices.  The text before the
  384.        prompt is still displayed, and the choices defined with
  385.        /C are still valid.
  386.  
  387.     /S
  388.  
  389.        This switch makes the available choices case sensitive.
  390.        By default, CHOICE accepts both upper and lower case as
  391.        the same value.
  392.  
  393.     Example:
  394.  
  395.        CHOICE /C:yn Do you want to continue?
  396.        IF ERRORLEVEL 2 GOTO end
  397.        IF ERRORLEVEL 1 GOTO continue
  398.  
  399.        :continue
  400.        echo You chose to continue
  401.  
  402.        :end
  403.        
  404.     Displays to the caller:  Do you want to continue? [Y/N?]
  405.  
  406.     NOTE: When checking the errorlevel returned by CHOICE, you
  407.     must check the highest errorlevel first in order for this
  408.     command to work properly.
  409.  
  410. ECHO [ON | OFF | Text]
  411.     
  412.     ON displays all commands to the screen as they are run.
  413.     
  414.     OFF stops the display of commands on the screen.
  415.  
  416.     Text
  417.  
  418.     Displays the "Message" regardless of the current state of
  419.     ECHO.
  420.  
  421. PAUSE
  422.     
  423.     Pause execution of a batch program.  When the batch
  424.     interpreter encounters a pause command, the following
  425.     message is displayed:
  426.  
  427.     Press any key when ready...
  428.  
  429.     The batch program continues after the user presses a key.
  430.  
  431. REM [comment]
  432.  
  433.     Allows comments to be added to the batch program.  Any line
  434.     preceded with REM is ignored by the batch interpreter.
  435.  
  436. GOTO label
  437.  
  438.     Transfers control of the program to the label.  Label names
  439.     begin with a colon.  Label names cannot contain periods.
  440.  
  441. IF [NOT] ERRORLEVEL x
  442. IF [NOT] string1 == string2 
  443. IF [NOT] EXIST path
  444.  
  445.     Allows conditional processing of batch commands.  If the
  446.     condition is true, the command is executed, otherwise it is
  447.     skipped.
  448.  
  449.     NOT reverses the true and false value.
  450.  
  451.     IF ERRORLEVEL is true if the previous program had an exit
  452.     code equal to the number or higher.
  453.  
  454.     IF string1 == string2 is true if the first string matches
  455.     the characters in the second string.
  456.  
  457.     IF EXIST is true if the filename is found in the specified
  458.     directory.
  459.  
  460.