[Scilab-users] issue providing command to powershell

Samuel Gougeon sgougeon at free.fr
Wed Feb 3 16:47:31 CET 2016


Hello,
Le 03/02/2016 14:21, David Chèze a écrit :
> .../...
> pscmd="get-content -Path ""C:\Users\dc227480\Documents\temp\Données IAQ
> SENSE 29_01_2016 10_45_00 1.dat.csv"" | out-file
> ""C:\Users\dc227480\Documents\temp\Données IAQ SENSE 29_01_2016 10_45_00
> 1.UTF-8.csv"" -encoding utf8"
> powershell(pscmd)
> .../...
>
> Is there a workaround to make the powershell() function from scilab to
> provide proper string to powershell ?
I would first try doubling double-quotes, as in:

pscmd="get-content -Path """"C:\Users\dc227480\Documents\temp\Données IAQ
SENSE 29_01_2016 10_45_00 1.dat.csv"""" | out-file
""""C:\Users\dc227480\Documents\temp\Données IAQ SENSE 29_01_2016 10_45_00
1.UTF-8.csv"""" -encoding utf8"
powershell(pscmd)


Let us know what it yields.

Regards
Samuel Gougeon




More information about the users mailing list