Display the "Open WITH" dialog

xiaoxiao2021-03-06  65

When using the Process class to open a file, if the file type is unknown, you will get the error code for the Win32Exception for ERROR_NO_ASSOCIATION. Solution is simple

ProcessStartInfo Test

=

New

ProcessStartInfo (); test.filename

=

"

WJH.wjh

"

Test.errordialog

=

True

;

//

it's him

Process.start (Test);

This will display the "Open with" dialog.

转载请注明原文地址:https://www.9cbs.com/read-112791.html

New Post(0)