Hi,
I wanted to execute the close ax application on certain conditions, so that i have used the .bat file to execute the same.
1) How to create bat file?
taskkill /F /im Ax32.exe
3. "Save As" the notepad file with selection of "Save As Type:" : "All files" and enter file name with .bat extension.
2) How to call bat file from ax application ?
I have executed the "Close application code" on the button click.
void btnCloseAppl()
{
str path;
;
path="C:\TestFileToCloseAppl\Axclose.bat";
//Kindly check the path may be have to add '\' in between the path
winapi::shellExecute(path);
}
Thanks,
Kishor
I wanted to execute the close ax application on certain conditions, so that i have used the .bat file to execute the same.
1) How to create bat file?
- Open notepad and enter the command that you have to execute.
- As I have to execute the close command for ax i used the following line of code.
taskkill /F /im Ax32.exe
3. "Save As" the notepad file with selection of "Save As Type:" : "All files" and enter file name with .bat extension.
2) How to call bat file from ax application ?
I have executed the "Close application code" on the button click.
void btnCloseAppl()
{
str path;
;
path="C:\TestFileToCloseAppl\Axclose.bat";
//Kindly check the path may be have to add '\' in between the path
winapi::shellExecute(path);
}
Thanks,
Kishor