PDCmd.exe Command Reference


In the tables that follow, we document all the command line operations that PDCmd.exe can understand, and explain what they do. Any or all of the PDCmd operations can take the \\ComputerName argument, where you target the operation at a specific Windows machine using part of its universal naming convention (UNC) name. This is the same name that appears in the System item in Control Panel as part of the Computer name (Windows 7, Vista, Server 2008) or Full computer name (XP, Server 2003, earlier versions) entry.

The available PerfectDisk commands and their usage are explained below:

Drive status

Show status of all drives.

PDCmd /st [/c <computer-name>]

Defrag drives online

PDCmd /dol|/sp|/cfs  /alldrives|<drive1> <drive2>... [/w] [/c <computer-name>]

Where:

/dol          - Defragment only

/sp           - SMARTPlacement

/cfs          - Consolidate free space

/alldrives - perform compaction of all drives

/w            - wait until operation completes

Defrag drives offline

PDCmd /of  /alldrives|<drive1> <drive2>... /all|[ /d][ /s][ /p]   [/w] [/c <computer-name>]

Where:

/all - defrag directories, system files and paging file

/d   - defrag directories

/s   - defrag system files

/p   - defrag paging file

Defrag files

PDCmd /df <file1> [<file2> ...] [/c <computer-name>]

Analyze drive

PDCmd /an  /alldrives|<drive1> <drive2>... [/w] [/c <computer-name>]

Show latest statistics

PDCmd /sta|/sto|/stf  /alldrives|<drive1> <drive2>...  [/c <computer-name>]

Where:

/sta - statistic of analyze pass

/sto - statistic of online  defrag pass

/stf  - statistic of offline defrag pass

Stop the current active operation

PDCmd /stop  /alldrives|<drive1> <drive2>...  [/c <computer-name>]

Schedule boot time defrag.

PDCmd /sb  /alldrives|<drive1> <drive2>...  [/c <computer-name>]

Cancel boot time defrag.

PDCmd /cb  /alldrives|<drive1> <drive2>...  [/c <computer-name>]

Run schedule

PDCmd /rs  <schedule-name> [/c <computer-name>]

Query file name by the ID on NTFS drive

PDCmd /id <drive> <id>   [/c <computer-name>]

Where:

<drive> - drive letter

<id>      - NTFS file ID

Get free space status

PDCmd /fs  /alldrives|<drive1> <drive2>...  [/c <computer-name>]

Show support information

PDCmd /si

Display help

PDCmd /?

Related Topics

§        Running PerfectDisk from the Command Line

§        Accessing PerfectDisk CLI Tool (PDCMD.exe) to Run PerfectDisk Commands

§        Understanding Custom Error Codes