0

I'm trying to write a powershell script that launches Visual Studio with a solution and run a macro.

devenv.exe "$PATH\TestSolution.sln" /Command Macros.MyMacros.TestMacro

However, it takes time to load the solution so that the macro doesn't run.

Is there a way to wait(sleep) for 15 second and run the macro?

4

1 回答 1

0

在指定的时间段内暂停脚本或会话中的活动。使用开始睡眠http://technet.microsoft.com/en-us/library/hh849939.aspx

于 2013-01-03T17:09:06.757 回答