簡體   English   中英

如何在flutter代碼中使用windows cmd命令?

[英]How to use windows cmd commands in flutter code?

我需要從 Windows 的 flutter 應用程序構建 Windows 上啟動一個 exe。

在此處輸入圖像描述

在應用程序中,當按下“Avvia SedisRemoteController”時,安裝在 Windows 上的 exe 應該會運行。

任何人都知道如何使用代碼來做到這一點? windows cmd 的命令很簡單

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

我找到了一個解決方法:使用

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

添加這個

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM