Restart AX Client using X++

Hi,

I wanted to restart AX client by writing a code for it(MorphX) only.

Can anyone please help me to do this?

Thanks & Regards,

/Ashlesh

Try this

static void restartClient(Args _args)

{

infolog.shutDown(true);///It will shut down the client

WINAPI::shellExecute(“ax32.exe”);/// It will start the client by running the .exe file.

}

Hi,

Thanks Kranthi.

It worked for me.

Regards,

/Ashlesh