[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.
Re: [2005] How do I simulate a double click to open a file?
Use the Process.Start Method
Re: [2005] How do I simulate a double click to open a file?
Thank you, This worked. Cheers! :wave:
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.