通过 powershell 脚本在 Visio 上出错

Error on Visio via powershell script

我在通过 powershell 脚本处理这句话时遇到了问题。

if ($prob -eq "Yes") { $square.show; } else { $square.hide; }

输出对这句话不起作用。我可以知道解决方案吗?

谢谢。

输出

Show the square shape if the requirement is "Yes"

Hide the square shape if the requirement is "No"

希望本文对您有所帮助:Is It Possible to Automate Microsoft Visio?

还有另外几个链接