Matteo Toma
Matteo Toma

Reputation: 675

How to use windows cmd commands in flutter code?

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

enter image description here

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"

Upvotes: 1

Views: 1202

Answers (1)

Matteo Toma
Matteo Toma

Reputation: 675

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");

Upvotes: 2

Related Questions