views:

17

answers:

1

Hi,

My NAnt build runs as a non-admin as part of CruiseControl. But we have an NCover task which needs to run as an Administrator. For this we are thinking about using RunAs with an admin account.

The problem is that RunAs returns directly and doesn't wait for the process to exit.

Is there a way to block the NAnt build until NCover has finished?

Tnx

A: 

Does adding the /W option to runas get it to wait?

commondream
No, there is no option /W whatsoever
Dries Van Hansewijck
What version of Windows are you running on?
commondream