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]
沒有留言:
張貼留言