home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / FFG155.ZIP / USEIDEAS.FFG < prev    next >
Text File  |  1993-12-12  |  5KB  |  191 lines

  1. IDEAS FOR USING FFG:
  2.  
  3.   Q: How do I find a file whose name I can't remember but I know it had "92"
  4.      in the name or extension somewhere?
  5.  
  6.   A: ffg *:*92*
  7.  
  8.  
  9.   Q: How do I find a file whose name I can't remember but I know it had the
  10.      words "save this forever" somewhere in the file?"
  11.  
  12.   A: 1. ffg *:* "/$save this forever"
  13.  
  14.      or
  15.  
  16.      2. ffg *:* /$save=_this=_forever
  17.  
  18.  
  19.   Q: How do I find a file that I know has 'tax' in the name and '92' in the
  20.      name, but I'm not sure of the order or whether part is in the name
  21.      extension?
  22.  
  23.   A: ffg *:*tax* *92*
  24.  
  25.  
  26.   Q: How to I find files that have info about both "Tom" and "Dick" (or
  27.      "Richard"), but nothing about "Harry"?
  28.  
  29.   A: ffg *:* /$Tom /$Dick,Richard /$=!Harry
  30.  
  31.  
  32.   Q: How can I find a file and then make it's directory the current
  33.      directory?
  34.  
  35.   A: ffg *:filename /g
  36.  
  37.  
  38.   Q: How do I find all files created or modify today without having to
  39.      specify today's date?  How can I make backup copies of only those
  40.      files?
  41.  
  42.   A: 1. ffg *:* /dT
  43.      2. ffg *:* /dT "/eBACKEM %n", where 'BACKEM' is your backup command.
  44.  
  45.  
  46.   Q: How can I find files that were modified during a certain period of the
  47.      day?
  48.  
  49.   A: ffg *:* /t8:00-17:00
  50.  
  51.  
  52.  
  53.   Q: How can a find all configuration files and compress them into an ZIP
  54.      file?
  55.  
  56.   A: 1. To create a list file, then compress the batch:
  57.  
  58.      ffg C:*c[,o,on]f[i,]g* /x*.[exe,com,zip] /fp /fs! > c:\cfg\config.lst
  59.      pkzip CONFIG.ZIP @config.lst
  60.  
  61.      2. or, to do it one file at a time:
  62.  
  63.      ffg C:*c[,o,on]f[i,]g* /x*.[exe,com,zip] "/ePKZIP -u C:\CFG\CFGS.ZIP %n"
  64.  
  65.  
  66.   Q: How can I find all files with a certain extension and rename them to
  67.      have a different extension?
  68.  
  69.   A: 1. ffg *:*.old "/eREN %N %F.new"           -- will confirm each one
  70.      2. ffg *:*.old "/e!REN %N %F.new"          -- will do all w/o confirm
  71.  
  72.  
  73.   Q: How can I get a database inventory of all executable programs on my
  74.      computer?
  75.  
  76.   A: ffg *:*.[exe,com] /f, /fs! > C:\DATA\EXELIST.TXT
  77.  
  78.  
  79.   Q: How can I clean up my disk of all temporary and backup files?
  80.  
  81.   A: ffg *:*.[bk*,bak,tmp] "/eDEL %N"
  82.  
  83.  
  84.   Q: How can I delete all files that match a certain description, but have
  85.      an opportunity to confirm for each one whether or not to delete it?
  86.  
  87.   A: ffg *:FileMask [Grouping Options] "/eDEL %N"
  88.  
  89.  
  90.   Q: How, in a batch file, can I determine of a directory exists?
  91.  
  92.   A: See "direxist.bat" in UTIL_BAT.ZIP.
  93.  
  94.  
  95.   Q: How can I go find a file in an archive and unarchive it?
  96.  
  97.   A: ffg *:filename /z. "/eUNARC %Z %N"   --where UNARC is your unarchive
  98.                                             utility such as PKUNZIP
  99.  
  100.  
  101.   Q: How can I delete all files that haven't been modified in the last 30
  102.      days?
  103.  
  104.   A: ffg *:* /d-30T "/eDEL %N"
  105.  
  106.  
  107.   Q: How can I audit a business computer for files that appear to be of a
  108.      personal nature?
  109.  
  110.   A: Search for suspicious file names, text contents, hidden files, files in
  111.      hidden directories etc.
  112.  
  113.  
  114.   Q: How can I make all hidden files read-only too?
  115.  
  116.   A: ffg *:* /ah "/eATTRIB +R %N"
  117.  
  118.  
  119.   Q: How can I find all of my tax files?  doc files? help files?
  120.  
  121.   A: See examples in EXAMPLES.FFG and in DEMO_BAT.ZIP
  122.  
  123.  
  124.   Q: How can I go find a file and immediately edit it? view it? search it
  125.      for text?
  126.  
  127.   A: See GoEdit.bat, GoList.bat, GoFind.bat in GO_BAT.ZIP.
  128.  
  129.  
  130.   Q: How can I find all archiving programs and copy them onto a floppy disk?
  131.  
  132.   A: ffg *:*[zip,arj,arc,lzh,zoo,pak]*.[exe,com,bat] "/eCOPY %N A:"
  133.  
  134.  
  135.  
  136.   Q: How can I archive all files last modified in 1992?
  137.  
  138.   A: ffg *:* /d92 /fp /fs! > c:\1992\1992.lst
  139.      C:
  140.      cd \1992
  141.      pkzip 1992.ZIP @1992.lst
  142.  
  143.  
  144.   Q: How can I find a file that was just created a few minutes ago, when I
  145.      don't know its name?
  146.  
  147.   A: ffg *:* /dT /t5N-      -- for last 5 minutes (See also RECENT.BAT)
  148.  
  149.  
  150.   Q: How can I find all files that were installed by Windows 3.1, no matter
  151.      where they are on my computer?
  152.  
  153.   A: ffg *:* /d3/10/92 /t3:10
  154.  
  155.  
  156.   Q: How do I find all files that were last modified/created last weekend?
  157.  
  158.   A: ffg *:* /dSa,Su /d7t-1t
  159.  
  160.  
  161.   Q: How find out if there are files in hidden directories?
  162.  
  163.   A: ffg *:* /h.
  164.  
  165.  
  166.   Q: I have a various files with five letter names and no extensions
  167.      (XXXXX.). I want to rename only 1992 files so that they start with the
  168.      year and have my initials as the extension in the form 92-XXXXX.TGV.
  169.      How do I do it?
  170.  
  171.   A: ffg *:?????. /d92 "/eREN %N 92-%F.TGV"
  172.  
  173.  
  174.   Q: How can I change the date/time of a group of files? (needs a dating
  175.      utility)
  176.  
  177.   A: ffg *:FileMask [Grouping Options] "/eNEWDATE %N"  --where NEWDATE is
  178.                                                          the dating utility
  179.  
  180.  
  181.   Q: How to I copy, rename, delete, replace etc. a group of files, but have
  182.      an opportunity to verify the operation for each file?
  183.  
  184.   A: See VDELETE.BAT for an example, but all this requires is use of the /e
  185.      execute option, without using the '!' no-confirm option.
  186.  
  187.  
  188.   Q: How can I use FFG to build useful utilities
  189.  
  190.   A: See UTIL-BAT.ZIP
  191.