Results 1 to 4 of 4

Thread: [2005] How do I simulate a double click to open a file?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2009
    Posts
    26

    [2005] How do I simulate a double click to open a file?

    Hi All,

    I am very new to developing so I apologize in advance.

    I am creating a web page which converts binary data into a temporary file.
    The *.tmp file then gets converted to a *.tiff file.
    This all works fine.

    The next step I would like to take, is for the web page to programatically go to the local *.tiff file, and simulate a double click in Windows Explorer.

    This should then either Open the file, or ask what program should be used (as per all non recognized file types in windows).

    Do you guys have any suggestions?

    Thanks.

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: [2005] How do I simulate a double click to open a file?

    Use the Process.Start Method
    Please mark you thread resolved using the Thread Tools as shown

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2009
    Posts
    26

    Re: [2005] How do I simulate a double click to open a file?

    Thank you, This worked. Cheers!

  4. #4
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: [2005] How do I simulate a double click to open a file?

    If you are talking about ASP.NET then don't use Process.Start. As ASP.NET is executed on server, it will open the file with it's default associated application on SERVER. Use JavaScript with ASP.NET instead.

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