We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var shell = Shell(); await shell.run(''' setx a b /M ''');
The text was updated successfully, but these errors were encountered:
It would help investigation if could add more info (such as which platform, I guess here Windows) and what kind of error (stdout/stderr) you get.
If I try on the command line:
PS C:\Users\Alex> setx a b /M ERROR: Access to the registry path is denied.
Same if I try in dart code
await run('setx a b'); await run('setx a b /M');
It displays:
$ setx a b SUCCESS: Specified value was saved. $ setx a b /M ERROR: Access to the registry path is denied.
So I guess the error is normal here since it requires elevated rights.
Sorry, something went wrong.
@alextekartik
How to elevate permissions through dart or process_run to ensure that they can be executed
Unfortunately I don't know how to raise permission but I guess a solution could be found like for other languages (java, node, .net): https://stackoverflow.com/questions/57106543/i-want-to-run-powershell-as-admin-and-execute-a-command-in-the-admin-power-shell
No branches or pull requests
The text was updated successfully, but these errors were encountered: