- Sep
- 134
- 1
I've played with the PSHELL-command and after a little try and error I think I can use with the
alternating double- and single quotes. My "reference command" for Powershell ist
PS:>"List Volume"|DISKPART
In PSHELL:
PSHELL /S "'List Volume'|DISKPART"
But this will not work with %@PSHELL
Echo %@PSHELL["'List Volume'|DISKPART"]
I get an error message from Powershell, Parameter could not be handled.
How is the handling with %@PSHELL ?
The manual is pretty monosyllabic there:
@PSHELL[expression] : Executes the specified PowerShell expression.
How about some example here ?
alternating double- and single quotes. My "reference command" for Powershell ist
PS:>"List Volume"|DISKPART
In PSHELL:
PSHELL /S "'List Volume'|DISKPART"
But this will not work with %@PSHELL
Echo %@PSHELL["'List Volume'|DISKPART"]
I get an error message from Powershell, Parameter could not be handled.
How is the handling with %@PSHELL ?
The manual is pretty monosyllabic there:
@PSHELL[expression] : Executes the specified PowerShell expression.
How about some example here ?