
You can use the following variables in the command string as specified by the /C command-line option: name without name path of the path of the to TRUE if a file type is a directory. The forfiles /S command is similar to dir /S. If no sign is specified, + is used by default.ĭisplays the help text in the cmd window. Valid values for days include any number in the range 0–32,768.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.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.Selects files with a last modified date within the specified time frame: This command is most commonly used in batch files.



Selects and runs a command on a file or set of files.
