Here’s a short script I’ve written to query if a process called ‘Flash’ is running. It’s very complex but just for completeness I thought I’d post it back.
Martin.
<script language="C#"> <imports> <import namespace="System.Diagnostics" /> </imports> <code> <![CDATA[ public static void ScriptMain(Project project) { foreach (Process proc in Process.GetProcesses( )) { if (proc.ProcessName == "Flash") { // set property to true project.Properties["wait"] = "true"; } } } ]]> </code> </script>
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Maggs
Apologies I replied to the wrong message, this should have been the reply to Martin's message entitled 'Write to registry'
Kind Regards
Andy Maggs
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Maggs Hi Martin,
We use a script task to write to the registry as follows:
<script language="C#">
} </script> Kind Regards
Andy Maggs
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Martin Thornalley Is there a way with either a NAnt task or a NAntContrib task to query if a particular process is running?
Thanks, Martin |
- [Nant-users] Query process Martin Thornalley
- RE: [Nant-users] Query process Andy Maggs
- RE: [Nant-users] Query process Andy Maggs
- RE: [Nant-users] Query process Martin Thornalley
- RE: [Nant-users] Query process Bill_Martin