Always wrap the command
in double quotes to ensure it isn??™t interpreted as part of the ForFile command. The default
command is ???cmd /c echo @file???. Always precede internal command processor command with
cmd /c. The following list describes the variables that you can use as part of the command.
@file Returns the name of the file, including the file extension.
@fname Returns the name of the file without the extension.
@ext Returns only the file extension.
@path Returns the full path of the file. This information includes the drive as well as the
actual path.
@relpath Returns the relative path of the file. The relative path begins at the starting
folder.
@isdir Specifies whether the file type is a directory. True indicates a directory entry.
@fsize Indicates the size of the file in bytes.
@fdate Indicates the date that someone last modified the file.
@ftime Indicates the time that someone last modified the file.
TIP You can include special characters in a command by using the 0xHH format where HH is a
hexadecimal number. For example, you can specify a tab by typing 0x09.
/D date Selects files that have a last modified date within the specified range.
Pages:
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378