Quantcast
Channel: MaplePrimes - Questions and Posts tagged with system
Viewing all articles
Browse latest Browse all 164

How to run programmatically Windows PowerShell commands ?

$
0
0

I use Maple 2020 on a Windows 10 PC.

The command ssystem("CMD") enables to launch any Windows command accessible from the shell.
But how to launch a PowerShell command?

For instance ssystem("get-process") returns -1 (not surprising in fact for get-process is not a shell process).
How can I tell Maple that this command is to be found in the PowerShell ?

And even, I this possible for, in the ssystem help page, it's said that not all the command can be launched by ssystem

TIA


Viewing all articles
Browse latest Browse all 164

Trending Articles