如何通过 cmd.exe 引用 Start-Process 的路径?

时间:2021-06-25 12:25:53

标签: powershell

为什么

Start-Process -Wait 'C:\scripts\install.cmd'

工作

添加以下内容

Start-Process -Wait 'C:\scripts(1)\install.cmd'

如何让它发挥作用?

1 个答案:

答案 0 :(得分:-1)

我试图重现,但它对我有用。我的 PowerShell 版本是 5.1.19041.906。也许 segp2=[['13s'],['3c','6h','8h','9h','10c','11h'],['4c','4h','5c','5h','7c','7s'],[],[],[],['4h','5h','6h','8h','9h','11h'],[],[]] copyseg=list(segp2) copy=list(copyseg[6]);x=0;y=0 for i in copyseg[1]: if i in copyseg[6]:copyseg[1].remove(i);copy.remove(i);x+=1 if x==5:break for i in copyseg[2]: if i in copyseg[6]:copyseg[2].remove(i);copy.remove(i);x+=1 if x==5:break for i in copyseg[3]: if i in copyseg[6]:copyseg[3].remove(i);copy.remove(i);x+=1 if x==5:break print(segp2) print(copyseg) 脚本有问题?

相关问题