Skip to content

Commit 04f0f61

Browse files
Clarify date format for /D option in forfiles command
Updated the description for the /D option to specify that the date format should match the regional settings of the Windows device.
1 parent 122144e commit 04f0f61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • WindowsServerDocs/administration/windows-commands

WindowsServerDocs/administration/windows-commands/forfiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ forfiles [/P pathname] [/M searchmask] [/S] [/C command] [/D [+ | -] [{<date> |
2525
| /M `<searchmask>` | Searches files according to the specified search mask. The default searchmask is `*`. |
2626
| /S | Instructs the **forfiles** command to search in subdirectories recursively. |
2727
| /C `<command>` | Runs the specified command on each file. Command strings should be wrapped in double quotes. The default command is `"cmd /c echo @file"`. |
28-
| /D `[{+\|-}][{<date> | <days>}]` | Selects files with a last modified date within the specified time frame:<ul><li>Selects files with a last modified date later than or equal to (**+**) or earlier than or equal to (**-**) the specified date, where *date* is in the format MM/DD/YYYY.</li><li>Selects files with a last modified date later than or equal to (**+**) the current date plus the number of days specified, or earlier than or equal to (**-**) the current date minus the number of days specified.</li><li>Valid values for *days* include any number in the range 0-32,768. If no sign is specified, **+** is used by default.</li></ul> |
28+
| /D `[{+\|-}][{<date> | <days>}]` | Selects files with a last modified date within the specified time frame:<ul><li>Selects files with a last modified date later than or equal to (**+**) or earlier than or equal to (**-**) the specified date, where *date* is in the same regional format as your Windows device, for example MM/DD/YYYY for English (United States).</li><li>Selects files with a last modified date later than or equal to (**+**) the current date plus the number of days specified, or earlier than or equal to (**-**) the current date minus the number of days specified.</li><li>Valid values for *days* include any number in the range 0-32,768. If no sign is specified, **+** is used by default.</li></ul> |
2929
| /? | Displays the help text in the cmd window. |
3030

3131
#### Remarks

0 commit comments

Comments
 (0)