home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / SYSTEM / FSERVER.ZIP / FSERVER.DOC next >
Encoding:
Text File  |  1990-08-09  |  10.8 KB  |  240 lines

  1. Copyright 1990 P.C. Resources, PO Box 443, Hudson, MA 01749 All rights reserved
  2.  
  3.                     License fee for commercial use is $10.
  4.  
  5.     FSERVER shows a menu of filenames on your screen.  High-light a file-
  6.     name and hit ENTER to pass the filename to your application. 
  7.  
  8.     FSERVER provides 'Point-and-Shoot' file selection to any application 
  9.     which will accept a command-line filename. This includes DOS commands 
  10.     such as COPY and DEL. 
  11.  
  12.     FSERVER was intended to be run from menu systems or batch files, but 
  13.     the defaults allow for reasonable use from the DOS command line. 
  14.  
  15.  
  16.     The file display shows 5 columns by 20 lines of files, or 100 files 
  17.     per page.  When multiple pages are available small up or down arrows 
  18.     are shown at the corners of the file box.
  19.  
  20.     Within the file display the four cursor-keys, Page-UP, Page-DN, HOME, 
  21.     and END move a high-lighted field.  The files are in alphabetical 
  22.     order, and any alpha-numeric key will jump the cursor to the first 
  23.     file starting with that character. 
  24.  
  25.     Directories are shown in angle-brackets <>. High-lighting a directory 
  26.     name and hitting ENTER moves to that directory.  The double-dot entry,
  27.     <..>, is a special directory entry to go up one level. 
  28.  
  29.     The esc key exits FSERVER gracefully, returning to the current dir-
  30.     ectory and clearing the screen. The ENTER key - when a filename is 
  31.     high-lighted - will execute the application program and pass the high-
  32.     lighted file to the program.
  33.  
  34.  
  35.     The general format for the FSERVER command is: 
  36.  
  37.              fserver [file-mask] [options] [/cmd <command string>]
  38.  
  39.  
  40.     FSERVER with no arguments is a directory viewer defaulting to display 
  41.     all files.  FSERVER with arguments is a powerful application launcher. 
  42.     
  43.     The arguments are described in detail below with examples.
  44.  
  45.  
  46.     file-mask   The file-mask is a file description which may include * 
  47.                 and ? wildcards and which is interpreted per DOS standards. 
  48.  
  49.                 The mask - if used - must be the first argument after the 
  50.                 command name. If no mask is provided the program defaults 
  51.                 to *.* 
  52.  
  53.  
  54.     /CMD <string>
  55.                 The /CMD switch specifies which program or DOS command to 
  56.                 execute.  The /CMD switch MUST be the LAST switch on the 
  57.                 command line, and everything after /CMD is assumed to be 
  58.                 part of the command.
  59.  
  60.                 The command string may be anything which is valid at the 
  61.                 DOS command line, except it may not include the DOS input 
  62.                 redirection character "<". 
  63.  
  64.                 Programs and batch files used should be in the current 
  65.                 dir, on the path, or specified by a complete path name;
  66.  
  67.                                FSERVER /CMD \util\field.com
  68.     
  69.                 FSERVER appends the selected file name to the command 
  70.                 string.  If the filename must be elsewhere in the string 
  71.                 place %1% where the filename should be inserted.  When 
  72.                 FSERVER is called from a batch file, where %1% is reserv-
  73.                 ed, use #1# instead. 
  74.     
  75.                 FSERVER /CMD LIST         *These three commands have the 
  76.                 FSERVER /CMD LIST %1%      same effect, to run LIST with 
  77.                 FSERVER /CMD LIST #1#      the selected file.
  78.  
  79.                 
  80.                 FSERVER /CMD COPY %1% E:  *This demonstrates imbedding the 
  81.                                            filename within a command
  82.  
  83.                 FSERVER /CMD ZZZZ.EXE %1% > TEMP
  84.  
  85.                                           *OUTPUT re-direction is allowed;
  86.                                            INPUT re-direction is not.
  87.                             
  88.  
  89.     /REPEAT     The /REPEAT switch causes FSERVER to shell to DOS to run 
  90.                 the application and then return to FSERVER: this allows 
  91.                 executing the application REPEATedly, picking a new file-
  92.                 name each time. 
  93.  
  94.                 The default is to execute the application once and return 
  95.                 to DOS.
  96.  
  97.                 This option affects the amount of memory available to your
  98.                 application.  Without the /REPEAT switch FSERVER will take
  99.                 up roughly 5k to 7k of memory.  With the /REPEAT switch as
  100.                 much as 100k may be tied up.  The amount of memory used 
  101.                 varys with the number of files in the current directory. 
  102.  
  103.  
  104.     /NOEXT      This switch causes the extension to be stripped from the 
  105.                 filename before passing to the application. 
  106.  
  107.                 With batch files it is handy to be able to pass the file-
  108.                 name without extension; e.g. the batch file calls two 
  109.                 programs, the first program creates a file with the same 
  110.                 filename but different extension for the second program to 
  111.                 use. If both programs accept default extensions then by 
  112.                 not passing the extension into the batch file the same 
  113.                 argument can be used for both programs. 
  114.  
  115.  
  116.     /NOPATH     FSERVER normally passes a full path and filename including 
  117.                 drive letter, e.g. C:\util\list.com
  118.  
  119.                 We found a program which insisted on only the filename: 
  120.                 the NOPATH switch will block passing the drive and path.  
  121.                 If you use this switch and move around the directory tree 
  122.                 you may need the /FOLLOW switch for your application to 
  123.                 find the file. 
  124.    
  125.                                 
  126.     /NOTREE     Normally FSERVER lists subdirectories in angle-brackets, 
  127.                 <UTIL>, and allows moving from directory to directory by 
  128.                 hitting ENTER on the directory entry.                     
  129.  
  130.                 The /NOTREE option defeats directory display and movement 
  131.                 allowing access only to the files in the current directory. 
  132.  
  133.                                                           
  134.     /FOLLOW     FSERVER changes the current directory as you move the 
  135.                 display to another directory; but when you execute the ap-
  136.                 plication the current directory is returned to the one 
  137.                 from which FSERVER was called. Thus if you start in dir-
  138.                 ectory \A, specify file \B\test, and your application 
  139.                 creates file test.out, the output file will be \A\test.out 
  140.  
  141.                 The /FOLLOW switch makes the current directory FOLLOW and 
  142.                 remain with the file display.  In the above example the 
  143.                 output will be \B\test.out 
  144.  
  145.                 Using this switch requires that your application either be 
  146.                 on your path or that you provide a full path description 
  147.                 in the application name.  You may have to take steps to 
  148.                 make overlay files available to the application as well. 
  149.  
  150.                 If you use /FOLLOW with the /REPEAT switch you will be 
  151.                 returned to the original directory when the application 
  152.                 terminates. 
  153.  
  154.     
  155.     /DRIVE=x    This switch allows jumping to other disk drives for the 
  156.                 file display. At present drives A through G are supported. 
  157.                 To specify drive D the command is,
  158.  
  159.                              FSERVER /DRIVE=D/REPEAT/CMD list    
  160.  
  161.                 If you use the /REPEAT switch - or exit with the esc key -
  162.                 you will be returned to the current drive and directory 
  163.                 when terminating. Otherwise your current drive will be the 
  164.                 one specified in the /DRIVE command.
  165.                                                  
  166.                 If the drive is a floppy which is not ready the program 
  167.                 will give you an "INSERT DISK IN DRIVE n AND HIT ANY KEY" 
  168.                 message.  If the drive cannot be read the program halts.
  169.  
  170.     /FG=nn
  171.     /BG=nn
  172.     /HL=nn      These switches allow adjusting the default color scheme. 
  173.                 FG is fore-ground, BG is back-ground, and HL is high-
  174.                 light. The argument is a one or two digit number between 0 
  175.                 and 15 for FG and HL, and between 0 and 9 for BG. 
  176.  
  177.                          FSERVER /FG=3/BG=4/HL=15/CMD list    
  178.     
  179.  
  180.     NOTES:
  181.  
  182.     FSERVER /CMD ECHO           
  183.     *Is a handy way to verify what FSERVER is passing.
  184.  
  185.     FSERVER /REPEAT/CMD list    
  186.     *Our favorite - runs Vernon D. Buerg's LIST.COM program. 
  187.  
  188.     FSERVER does not display system or hidden files - this cannot be changed 
  189.     from the command line.
  190.  
  191.     Type "<" to quickly jump to directory entries.
  192.                      
  193.     Type Control-Break in FSERVER and you are returned to the calling program 
  194.     with the default drive and directory those that were displayed when 
  195.     FSERVER was terminated. 
  196.  
  197.     Type Control-Break in an application called by FSERVER and the result 
  198.     depends on how the application handles Control-Break.  You may or may not 
  199.     be returned to FSERVER. 
  200.     
  201.     If you run a program, shell from the program into DOS, and then run 
  202.     FSERVER, you should use the /REPEAT switch.  If you do not, you may lose 
  203.     the return path to the first program.  Use caution if you try this.
  204.  
  205.         
  206.  
  207.  
  208.     FSERVER was written for use on systems we set-up and support; these run 
  209.     menu systems for the users who don't care to learn DOS.  But if an ap-
  210.     plication doesn't support a file-selection option, feeding the applicat-
  211.     ion a filename through the menu can be difficult. 
  212.  
  213.     With several hundred files it isn't easy to run a file management program 
  214.     to find the file, terminate the file management program, remember the 
  215.     filename while navigating the menu screens, and finally type the name in 
  216.     at the application prompt. 
  217.  
  218.     And on many systems we don't want to give the user the power of an XTREE
  219.     or similar file management program.  The browsing features are nice, but 
  220.     the delete-all-tagged-files type of commands can be troublesome. 
  221.  
  222.     Finally, users who don't want to learn DOS probably don't want to learn a 
  223.     file manager. 
  224.  
  225.     FSERVER - short for File-SERVER - is an excellent partner to menu systems 
  226.     such as BrownBags' POWER-MENU where it provides point-and-shoot capabil-
  227.     ity for most any program - even batch files.
  228.         
  229.         
  230.  
  231.            FSERVER was written in POWER-BASIC from SPECTRA Publishing.
  232.  
  233.  
  234.      P.C. Resources will provide customized or modified versions of this 
  235.      program.  We hope to have a mouse-version in the near future - write
  236.      for details.
  237.  
  238.                    P.C. Resources, PO Box 443, Hudson, MA 01749
  239.  
  240.