home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 5.ddi / DOC.ZIP / UTILS.PRF < prev    next >
Encoding:
Text File  |  1992-06-10  |  12.8 KB  |  350 lines

  1. /*************************************************************************/
  2.                      TURBO PROFILER UTILITIES DOCUMENTATION
  3.  
  4. This file documents the TDRF file transfer utility. This utility is used 
  5. for transferring files over the remote link when remote profiling.
  6.  
  7.  
  8. TDRF: Utility for remote file transfer and profiling
  9. ====================================================
  10.  
  11. The remote file transfer utility (TDRF) works in conjunction with
  12. TFREMOTE or WREMOTE running on another system. With TDRF you can perform
  13. most DOS file maintenance operations on the remote system. You can
  14.  
  15.   o copy files to the remote system
  16.   o copy files from the remote system
  17.   o make directories
  18.   o remove directories
  19.   o display directories
  20.   o change directories
  21.   o rename files
  22.   o delete files
  23.  
  24. Once you have started TFREMOTE or WREMOTE on the remote system, you can
  25. use TDRF at any time. You can start it directly from the DOS prompt, or
  26. you can access DOS from inside Turbo Profiler by using the File|DOS
  27. Shell command, then start TDRF (even while profiling a program on the
  28. remote system). This second method is useful if you've forgotten to put
  29. some files on the remote system that are required by the program you're
  30. profiling.
  31.  
  32. When describing TDRF in the following sections, we refer to the system
  33. you're typing at as the "local system" and any files there as "local
  34. files," and the other system connected by a serial cable or network as
  35. the "remote system" and any files there as "remote files."
  36.   
  37.   
  38. Starting TDRF from the DOS command line
  39. ---------------------------------------
  40. The general form of the command line for TDRF is
  41.  
  42.    TDRF [<options>] <command> [<arguments>]
  43.  
  44. The <options> control whether the link is network or serial, and, if
  45. it's serial, the speed of the remote link and which port it runs on.
  46. The options are described in more detail in the next section.
  47.  
  48. <command> indicates the operation you wish to perform.  You can type the
  49. command either as a DOS command--like COPY, DEL, MD, and so on--or as
  50. a single-letter abbreviation.
  51.  
  52. <arguments> are any arguments to the command.
  53.  
  54. For example, to get a directory display of all files starting with ABC
  55. in the current directory on the remote system, you could type:
  56.  
  57.    TDRF DIR ABC*
  58.  
  59. All the commands are described fully after the next section.
  60.   
  61.   
  62. TDRF command-line options
  63. -------------------------
  64. You must start an option with either a hyphen (-) or a slash (/).
  65. The following list shows the command-line options for TDRF:
  66.  
  67. -rn<L>;<R>  Sets the link to network, the local name to <L>, and the remote
  68.             name to <R>.
  69.  
  70.   If you link over the network, the name of the local machine defaults to
  71.   "LOCAL" and the remote machine to "REMOTE". You can set your own name for
  72.   the machines by entering a name up to 16 characters long for either the
  73.   local machine, the remote machine, or both.
  74.  
  75.   You must be running TFREMOTE or WREMOTE with the -rn option on the remote
  76.   machine with the local machine name set to the same name as you've
  77.   indicated in the TDRF command.
  78.  
  79. -rsN        Sets the type of remote link to serial and the speed of the link.
  80.  
  81.   The -rs option sets the speed at which the remote serial link operates.
  82.   You must make sure you use the same speed with TDRF that you specified
  83.   when you started TFREMOTE or WREMOTE on the remote system. N can be 1, 2,
  84.   3, or 4, where 1 signifies a speed of 9600 baud, 2 signifies 19,200 baud,
  85.   3 signifies 38,400 baud, and 4 signifies 115,000 baud.
  86.  
  87.   In other words, the higher the number, the faster the data transfer
  88.   rate across the serial link. Normally, TDRF defaults to -rs4 (the highest
  89.   speed).
  90.  
  91. -rpN        Sets the remote serial link port.
  92.  
  93.   The -rp option specifies which port to use for the remote serial link.
  94.   N can be either 1 or 2, where 1 stands for COM1 and 2 stands for COM2.
  95.  
  96. -w          Writes options to the TDRF executable program file.
  97.  
  98.   You can make the TDRF command-line options permanent by writing them
  99.   back into the TDRF executable program image on disk. Do this by
  100.   specifying the -w command-line option along with the other options you
  101.   wish to make permanent. You will then be prompted for the name of the
  102.   executable program.
  103.  
  104.   If you're running on DOS 3.0 or later, the prompt will indicate the
  105.   path and file name that you executed TDRF from. You can accept this
  106.   name by pressing Enter, or you can enter a new executable file name.
  107.   The new name must already exist and msut be a copy of the TDRF program
  108.   that you've already made.
  109.  
  110.   If you're running on DOS 2.x, you'll have to supply the full path
  111.   and file name of the executable program.
  112.  
  113.   If you enter the name of an executable file that doesn't exist (a new
  114.   filename), TDRF will create a new executable file.
  115.     
  116.  
  117. TDRF commands
  118. -------------
  119. Following are the command names you can use with the TDRF utility. You
  120. can use the wildcards * and ? with the COPY, COPYFROM, DEL, and DIR
  121. commands.
  122.  
  123.  
  124. COPY
  125.  
  126.   Copies files from the local system to the remote system. You can also
  127.   type COPYTO instead of COPY. The single letter abbreviation for this
  128.   command is T.
  129.  
  130.   If you supply a single file name after the COPY command, that file
  131.   name will be copied to the current directory on the remote system. If
  132.   you supply a second file name after the name of the file on the local
  133.   system, the local file will be copied to that destination on the
  134.   remote system. You can specify either a new file name, a directory
  135.   name, or a drive name on the remote system. For example,
  136.  
  137.      TDRF COPY TEST1 \MYDIR
  138.  
  139.   copies file TEST1 from the local system to file MYDIR\TEST1 on the
  140.   remote system.
  141.  
  142.  
  143. COPYFROM
  144.  
  145.   Copies files from the remote system to the local system. The single
  146.   letter abbreviation for this command is F.
  147.  
  148.   If you supply a single file name after the COPYFROM command, that file
  149.   name will be copied from the current directory on the remote system to
  150.   the current directory on the local system. If you supply a second file
  151.   name after the name of the file on the remote system, the remote file
  152.   will be copied to that destination on the local system. You can
  153.   specify either a new file name, a directory name, or a drive name on
  154.   the local system. For example,
  155.  
  156.      TDRF COPYFROM MYFILE ..
  157.  
  158.   copies file MYFILE from the remote system to the parent directory of
  159.   the current directory on the local system.
  160.  
  161.      TDRF F TC*.* A:\TCDEMO
  162.  
  163.   copies all files beginning with TC on the current directory of the
  164.   remote system to the TCDEMO directory on the local system's drive A.
  165.  
  166.  
  167. DEL
  168.  
  169.   Erases a single file from the remote system. The single letter
  170.   abbreviation for this command is E.
  171.  
  172.   If you just give a file name with no directory or drive, the file is
  173.   deleted from the current directory on the remote system. For example,
  174.  
  175.      TDRF DEL XYZ
  176.  
  177.   removes file XYZ from the current directory of the remote system.
  178.  
  179.  
  180. DIR
  181.  
  182.   Displays a listing of the files in a directory on the remote system.
  183.   The single letter abbreviation for this command is D.
  184.  
  185.   This command behaves similarly to the equivalent DOS command. If
  186.   you don't specify a wildcard mask, it shows all the files in the
  187.   directory; if you do specify a mask, only those files will be listed.
  188.   You can interrupt the directory display at any time by pressing
  189.   Ctrl-Break.
  190.  
  191.   The directory listing is displayed in a format similar to that
  192.   used by the DOS DIR command. For example,
  193.  
  194.      TDRF DIR \SYS\*.SYS
  195.  
  196.   results in a display like the following:
  197.  
  198.   Directory of C:\SYS
  199.  
  200.   ANSI         SYS     4833  8-23-91  6:00a
  201.   VDISK        SYS     5190  8-23-91  6:00a
  202.  
  203.  
  204. REN
  205.  
  206.   Renames a single file on the remote system. The single letter
  207.   abbreviation for this command is R.
  208.  
  209.   You must supply two file names with this command: the original file
  210.   name and the new file name. The new name can specify a different
  211.   directory as part of the name, but not a different drive. For example,
  212.  
  213.      TDRF REN TEST1 \TEST2
  214.  
  215.   renames file TEST1 in the current directory in the remote to TEST2 in
  216.   the root directory. This effectively "moves" the file from one
  217.   directory to another. You can also use this command to simply rename a
  218.   file within a directory, without moving it to another directory.
  219.  
  220.  
  221. MD
  222.  
  223.   Makes a new directory on the remote system. The single letter
  224.   abbreviation for this command is M.
  225.  
  226.   You must supply the name of the directory to be created. If you don't
  227.   supply a directory path as part of the new directory name, the new
  228.   directory will be created in the current directory on the remote
  229.   system. For example,
  230.  
  231.      TDRF MD TEST
  232.  
  233.   creates a directory named TEST in the current directory on the remote
  234.   system.
  235.  
  236.  
  237. RD
  238.  
  239.   Removes an existing directory on the remote system. The single letter
  240.   abbreviation for this command is K.
  241.  
  242.   You must supply the name of the directory to be removed. If you don't
  243.   supply a directory path as part of the new directory name, the
  244.   directory will be removed from the current directory on the remote
  245.   system. For example,
  246.  
  247.      TDRF RD MYDIR
  248.  
  249.   removes a directory named MYDIR from the current directory on the
  250.   remote system.
  251.  
  252.  
  253. CD
  254.  
  255.   Changes to a new directory on the remote system. The single letter
  256.   abbreviation for this command is C.
  257.  
  258.   You must supply the name of the directory to change to. You can also
  259.   supply a new drive to switch to, or even supply a new drive and
  260.   directory all at once. For example,
  261.  
  262.      TDRF CD A:ABC
  263.  
  264.   makes drive A the current drive on the remote system, and switches to
  265.   directory ABC as well.
  266.     
  267.   
  268. TDRF messages
  269. -------------
  270. Following is a list of the messages you might encounter when working with
  271. TDRF:
  272.  
  273. "Can't create file on local system: ___"
  274.   You were copying a file from the remote system using the COPYFROM
  275.   command, and the file could not be created on the local system.
  276.   Either the disk is full on the local system, or if the file name on the
  277.   remote system is the same as a directory name on the local system.
  278.  
  279. "Can't modify exe file"
  280.   The file name you specified to modify is not a valid copy of the TDRF
  281.   utility. You can only modify a copy of the TDRF utility with the -w
  282.   option.
  283.  
  284. "Can't open exe file to modify"
  285.   The file name you specified to be modified can't be opened. You've
  286.   probably entered an invalid or nonexistent file name.
  287.  
  288. "Error opening file: ___"
  289.   The file you wanted to transfer to the remote system could not be
  290.   opened. You probably specified a nonexistent or invalid file name.
  291.  
  292. "Error writing file: ___"
  293.   An error occurred while writing to a file on the local system,
  294.   probably because the local disk is full. Try deleting enough
  295.   files to make room for the file you want to copy from the
  296.   remote system.
  297.  
  298. "Error writing file ___ on remote system"
  299.   An error occurred while writing a file to the disk on the remote
  300.   system, probably because the remote disk is full. Try deleting
  301.   enough files to make room for the file you want to transfer.
  302.  
  303. "File name is a directory on remote"
  304.   You've tried to copy a file from the local to the remote system, but
  305.   the local file name exists as a directory on the remote system. You'll
  306.   have to rename the file by giving a second argument to the COPY
  307.   command.
  308.  
  309. "Interrupted"
  310.   You have pressed Ctrl-Break while waiting for communications to be
  311.   established with the remote system.
  312.  
  313. "Invalid command: ___"
  314.   You've entered a command that TDRF doesn't recognize. For each command,
  315.   you can use the DOS-style command word or the single-letter abbreviation.
  316.  
  317. "Invalid command line option: ___"
  318.   You've given an invalid command-line option when starting TDRF from
  319.   the DOS command line.
  320.  
  321. "Invalid destination disk drive"
  322.   You've specified a nonexistent disk drive letter in your command.
  323.   Remember that the remote system might have a different number of disk
  324.   drives than the local system.
  325.  
  326. "No matching files on remote"
  327.   You've done a DIR command, but either there are no files in the
  328.   directory on the remote system, or no files match the wildcard
  329.   specification that you gave as an argument to the DIR command.
  330.  
  331. "No remote command specified"
  332.   You haven't specified any command on the DOS command line; TDRF has
  333.   nothing to do.
  334.  
  335. "Too few arguments"
  336.   You haven't supplied enough arguments for the command that you
  337.   requested. Some commands require an argument, like DEL, MD, CD, RD,
  338.   and so on.
  339.  
  340. "Too many arguments"
  341.   You've specified too many arguments for the command you requested.
  342.   No command requires more than two arguments, and some require only one.
  343.  
  344. "Wrong version of remote driver"
  345.   You're using incompatible versions of TDRF and TFREMOTE. Make sure
  346.   you're using the latest version of each utility.
  347.   
  348. /***************************** End of File *******************************/
  349.     
  350.