Using FORFILES /FORMAT Commands in Windows

Among a number of commands, FORFILES and FORMAT commands are very important. Find below the basic command execution.

FOREFILES: Select a file (or set of files) and execute a command on each file. Batch processing.

Syntax:

FORFILES [/p Path] [/m Mask] [/s] [/c Command] [/d [+ | -] {dd/MM/yyyy | dd}]

FORMAT: Format a disk for use with Windows.

Syntax:

FORMAT drive: [/FS:file-system] [/V:label] [/Q] [size] [/C]

Rate this post:


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...