Tuesday, September 17, 2013

Opening Process In Ax 2012 Using X++

Opening Process In Ax 2012 Using X++

Here i tried to open Google chrome using X++ which is installed on my System.
You could always try open any other process by just specifying the path of the process.

static void OpenGoogle(Args _args)
{
    System.Diagnostics.Process Google = new System.Diagnostics.Process();
    System.Diagnostics.ProcessStartInfo obj = new System.Diagnostics.ProcessStartInfo(@"C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe");
    Google.set_StartInfo(obj);
    Google.Start();
}

No comments:

Post a Comment

Beautiful Fish Tank