crash starting process using process.start on new windows 11 system

aron clark 5 Reputation points
2023-06-17T02:18:36.9866667+00:00

User's image

Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} vote

1 answer

Sort by: Most helpful
  1. Viorel 125.8K Reputation points
    2023-06-17T05:06:23.27+00:00

    Try:

    var psi = new ProcessStartInfo { FileName = files[n], UseShellExecute = true };
    Process.Start( psi );
    
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.