Open the notepad and paste the following code and save the file as .bat
Here is the code for bat:
@ECHO OFF
REM *******************************************
REM **To run the Microsoft Dynamcis AX @ Startup**
REM *******************************************
START ax32.exe
CLS
Now click the bat file which will run the axapta client