3

I want to ask if it is possible to run PowerShell Code with Flutter Desktop for Windows. I found the package process_run on pub.dev. With that i can run Shell Commands but i have to do a workaround and start a PowerShell command with that. is there a direct way to send PowerShell commands?

1 Answer 1

2

There is an issue on that same repo asking about Powershell

Based on the answer from the repo owner, you may do something like:

// You can run a command
await shell.run('powershell -c "pwd"');
// You can run a power shell script
await shell.run('powershell script.ps1');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.