home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / Chip_2002-05_cd1.bin / chplus / cpp / 3 / Tools.exe / touch.txt < prev    next >
Text File  |  1998-02-09  |  2KB  |  45 lines

  1. Touch Help
  2.  
  3. Using TOUCH.EXE
  4.  
  5. Sometimes you'll want to force a target file to be recompiled or rebuilt even though you haven't
  6. changed it. One way to do this is to use the TOUCH utility. TOUCH changes the date and time
  7. of one or more files to the current date and time, making it "newer" than the files that depend on
  8. it.
  9.  
  10. You can force MAKE to rebuild a target file by touching one of the files that target depends on.
  11. To touch a file (or files), type the following at the command prompt:
  12.  
  13. touch filename [filename...] 
  14.  
  15. TOUCH updates the file's creation date and time. It accepts file names that contain the wildcard
  16. characters * and ?.
  17.  
  18. Note Before you use TOUCH, make sure your system's internal clock is set correctly. If it isn't,
  19. TOUCH and MAKE won't work properly.
  20. TOUCH.EXE updates a file's date stamp so that it reflects your system's current time and date.
  21. Sometimes you might need to force a target to be recompiled or rebuilt even though you haven't
  22. changed its source files. One way to do this is to use the TOUCH utility to update the time stamp
  23. of one or more of the target's dependency files. To touch a file (or files), type the following at the
  24. command prompt:
  25.  
  26. touch [options] filename [filename...]
  27.  
  28. Because TOUCH is a 32-bit executable, it accepts long file names. In addition, you can use file
  29. names that contain the wildcard characters * and ? to "touch" more than a single file at a time.
  30.  
  31. Note:     Before you use TOUCH, make sure your system's internal clock is set correctly.
  32.  
  33. TOUCH options
  34.  
  35. TOUCH.EXE supports several command-line options:
  36.  
  37. Option    Description
  38.  
  39. -dmm-dd-yy     Sets the date of the file to the specified date.
  40. -ffilename     Sets the time and date of files to match those of filename.
  41. -h   Displays help information (same as typing TOUCH without options or file names).
  42. -thh:mm:ss     Sets the time of the file to the specified time.
  43. -v   Verbose mode, shows each file TOUCHed.
  44.  
  45. Copyright   1998 Borland International.