Powershell 2.0 sudo limitations

后端 未结 2 598
無奈伤痛
無奈伤痛 2021-01-16 12:00

Long time reader but new poster. I\'ve been wrestling with this issue for an entire day and it\'s driving me nuts. After scouring this site and Google, I\'m still stuck.

2条回答
  •  离开以前
    2021-01-16 12:36

    You are invoking Start-Process with a cmdlet (copy-item) as its filepath argument instead of the filepath of an executable file.

    sudo xcopy '.\standard_menu.ini' 'C:\Program Files (x86)\Opera\ui\';
    

    will do the trick.

提交回复
热议问题