Results 1 to 3 of 3

Thread: Opening a file in a specific program.

  1. #1

    Thread Starter
    Addicted Member stefano5's Avatar
    Join Date
    Jul 2006
    Location
    London UK
    Posts
    131

    Opening a file in a specific program.

    I apologise if this seems like a newbie question

    Is there a way such that i can get a file to open with a specific program which may not be the windows default program.

    For example if i wanted to write some code to open a '*.bmp' file in 'paint' rather than 'windows image viewer' how could i do this? (without changing the 'opens with' program in the files properties)

    Thanks in Advance

    Stefan
    Last edited by stefano5; Jul 26th, 2006 at 02:21 PM.

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Opening a file in a specific program.

    Some programs ,not all take file name from the arguments
    VB Code:
    1. Process.Start("mspaint","C:\df.bmp")
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Addicted Member stefano5's Avatar
    Join Date
    Jul 2006
    Location
    London UK
    Posts
    131

    Re: Opening a file in a specific program.

    Thanks allot

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