Microsoft Paint Command Line Options

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
The command line controls Paint with the most basic functions of Windows.

Like many programs included with Microsoft Windows, you can control Paint from the command line rather than within the program itself. The command line allows you to execute Paint's basic functions without navigating menus or opening files. Access the command line using the "Command Prompt" window or the "Run" dialogue box, both located in the "Accessories" section of the Start menu. Type the commands directly into the dialogue box and press "Enter. Alternately, hold the "Windows" key and press "R" to open the Run dialogue.

Advertisement

Open Paint

Video of the Day

The command "mspaint" opens the program to a new image file. Type the command without the quotations and press "Enter."

Video of the Day

Open a File

Open an image file by specifying the file location on your hard drive. Add a space after "mspaint" and type the full file extension (e.g.: "mspaint c:/folder/subfolder/filename"). Ensure the file name is completely accurate, including the file extension. View an image's exact location by right-clicking on the file and choosing "Properties."

Advertisement

Advertisement

Print

Print an image from Paint directly through the command line by adding a space after "mspaint" and adding "/p" then a filename (e.g.: "mspaint /p c:/folder/subfolder/filename"). The command prints to your default printer. Use "/pt" followed by the name of a printer to print to a specific device.

Advertisement

Advertisement

references

Report an Issue

screenshot of the current page

Screenshot loading...