How  to open an image file with a command line

Posted on 2010-01-04
Last Modified: 2012-05-08
Running Windows 7, I have an Email notification program which allows me to execute a file when a particular type of Email arrives in my POP3 account.  I would like to use this function to display an image on my desktop.  The image is not -- in and of itself -- executable (e.g., image.jpg).  The application I use for opening this image is C:\Program Files\Paint Shop Pro\psp.exe    Can you provide me with a command line which will open the image file, rather than just the psp application?  Thanks!
Question by:ddantes
    LVL 7

    Expert Comment


    Start C:\img\image1.jpg
    will open the image in the default viewer. Can be used in a batch script for example.
    LVL 5

    Accepted Solution

    I believe you should be able to supply an argument to the psp.exe application that causes it to open the file.  The command "C:\Program Files\Paint Shop Pro\psp.exe c:\images\img.jpg" should do it.

    Author Comment

    holthd: Thank you for your comment.  I prefer to use psp.exe, not the default viewer.

    FunkyBrown: Thank you for your comment.  This got me on the right track, and the designated file is now opening with the following command:
    C:\Program Files\Paint Shop Pro\psp.exe "c:\Program Files\PopTray\image.jpg"

    I can't give a perfect score to your answer because the first set of quotation marks were not placed correctly, but you helped me resolve the question.  Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
    The viewer will learn how to back up in Windows 7 with native tools. This should be the first step. Third party tools should also be used. Access the Backup and Restore options: Click on the windows 7 start ball in the lower left corner of the scree…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now