简体   繁体   中英

How to use windows cmd commands in flutter code?

I need to start an exe on Windows from a flutter app build for Windows.

在此处输入图像描述

In the app, when "Avvia SedisRemoteController" is pressed, an exe installed on Windows should run.

Anyone knows how to do it with the code? The command for windows cmd is simply

"C:\Program Files (x86)\Sedis Remote Controller\SedisRemoteController.exe"

I founded a workaround: using

https://pub.dev/packages/open_file/example

Adding this

OpenFile.open("C:/Program Files (x86)/Sedis Remote Controller/SedisRemoteController.exe");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM