在屏幕位置打开Powershell窗口

时间:2019-03-13 22:50:38

标签: powershell

我正在尝试打开一个新的powershell窗口,我可以做的很好。但是我无法在屏幕上设置它的位置。

我正在使用以下内容: https://superuser.com/questions/1324007/setting-window-size-and-position-in-powershell-5-and-6

但是出现以下错误: 方法调用失败,因为[Window]不包含名为'MoveWindow'的方法。

这是powershell脚本:

var postcode: Any

}

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

您可以使用vbscript吗?

看看这个答案https://superuser.com/a/325611

通过powershell.exe替换cmd.exe,并使用cscript.exe script.vbs

调用脚本
相关问题