How to run batch file from MAUI ?

Dani_S 2,746 Reputation points
2022-07-18T12:05:26.87+00:00

Hi,
How to run batch file from MAUI ?
Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,927 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,901 Reputation points Microsoft Vendor
    2022-07-19T07:41:31.67+00:00

    Hello,​

    You can use System.Diagnostics.Process.Start(BatchFilePath); to run batch file in MAUI

    Here are Examples about how to use it.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.