Hello! I found on internet a Powershell script that allows you to controle Windows 10 virtual desktop function (create new desktops, delete them, change to concrete desktop,etc.) and I want to incorpore it to a skin. (Link)
I found a topic of jsmorley doing calls to a Ps1 file (Link), but I can't reproduce it to this script.
soyelrafa wrote:I get it to work creating a script file with if's and else's, and sending the properly option at the measure.
I don't think you need to do this, but I don't have time to verify the exact syntax for you. I think the issue with your original skin is that your powershell command syntax isn't quite right.
I think the logic is that you want to run the VirtualDesktop.ps1 script, then run the "New-Desktop" command, correct? To do this on one line you need to use a semi-colon between the two commands. (Note that I'm putting the powershell command on the Parameter line, if you do this, you need to leave the Program value blank.)
SilverAzide wrote:I don't think you need to do this, but I don't have time to verify the exact syntax for you. I think the issue with your original skin is that your powershell command syntax isn't quite right.
I think the logic is that you want to run the VirtualDesktop.ps1 script, then run the "New-Desktop" command, correct? To do this on one line you need to use a semi-colon between the two commands. (Note that I'm putting the powershell command on the Parameter line, if you do this, you need to leave the Program value blank.)
Your logic is right I think. VirtualDesktop.ps1 have the command "New-Desktop" inside, so should be loaded first and then execute the command "New-Desktop". I tried with your code, but I can't get it to work.