Help & Support

EaseUS Partition Master Section

Command line

EaseUS Partition Master works with Windows Command Line. Using the command line gives you the ability to manage your hard drive without launching the program. Additionally, you can use it to add specific operations when creating a batch file. 

How to start
To use our product in command line, you need to:
1. Run Windows CMD using your Administrator account. 
2. Drag the icon of "epmConsole.exe" from the product installation folder into CMD window or simply locate "epmConsole.exe" in CMD.

Method 1:

Method 2:

How to use
When successfully starting our product in CMD, all the available command and parameters for each command will be listed automatically (or you can input -h to get this guide information at any time). The commands can be written in full mode or abbreviation mode, for example.
In abbreviation mode, the command can be:

Input "epmconsole.exe list -d1" to list the information of Disk 1. And the following command is to create a new logical partition. You need to input "epmconsole.exe" at the front every time when you want to do any operation using the command line. "-d1"=select Disk 1, "-s4008"=create a partition from 4008MB space of the hard disk (you can also omit these arguments, and it will create a partition from the first unallocated space acquiescently), "-z100"=partition size is 100MB, "-fntfs"=file system is NTFS, "-t=logical"=create a logical partition.

In full mode, the command also can be:

The difference between the full mode and abbreviation mode is that you need to input the full name of each command. And also, the "-" should be "--" instead. Besides, there need to be "=" between command and arguments, such as "-d1" should be "—disk=1". 

What's more, here is a command to resize partition: "epmconsole.exe resize --disk=0 --volume=0 --start=0 --size=200". It means that our program will resize the first partition on Disk 0 to 200MB. "--start=0" means our program will not resize the partition from its left. If you set it as "--start=100", our program will shrink the selected partition 100MB from its left. And "--size=200" means the total partition size of the target partition after resizing.