check for permission

Feb 21 2010 3:27 AM
I have written an application and it is located on a network shared folder(LocalIntranet Zone)
I use the Process.Start() to run caspol.exe to give the LocalIntranetZone FullTrust Permission.
but it executes every time and creates the codegroup again and again.
I want to check if the codegroup exists to prevent creating that codegroup again.
how should I do that?