搜尋此網誌

2011年10月21日 星期五

EFI Shell commands -- TOUCH(更新檔案名稱時間郵戳於目前系統日期與時間)

Updates filename timestamp with current system date and time.

TOUCH [-r] file [file ...]

    -r       - Recursive to subdirectories
    file     - File or directory name

Note:
    1. If multiple files or directories are specified, the command will
       continue processing even if some files cannot be touched.
    2. Touch cannot change the timestamp of read-only files and directories.

Examples:
  * To update the timestamp of a specific file:
    fs0:\> ls for.nsh
    Directory of: fs0:\
      06/18/01  09:32p                  153  for.nsh
              1 File(s)         153 bytes
              0 Dir(s)

    fs0:\> touch for.nsh
    touch: fs0:\for.nsh [ok]

    fs0:\> ls for.nsh
    Directory of: fs0:\
      06/19/01  09:54a                  153  for.nsh
              1 File(s)         153 bytes
              0 Dir(s)

  * To touch a directory recursively:
    fs0:\> touch -r efi1.1
    touch: fs0:\efi1.1 [ok]
    touch: fs0:\efi1.1\boot [ok]
    touch: fs0:\efi1.1\boot\nshell.efi [ok]

沒有留言:

張貼留言