CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2011
    Posts
    8

    How to open a picture

    Hello everyone,I meet a question when I try to use Runtime.getRuntime().exec() to open a file.
    I can use Runtime.getRuntime().exec() to open an exe file such as notepad.exe or mspaint.exe,
    but How can I open a .txt or .jpg file?
    Thank you

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: How to open a picture

    What do you mean by "open" for a file? Do you want the OS to select a program(or do it yourself), start that program executing and have that program read the file and display it?

    Look at the Desktop class.
    Norm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured