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
wonderful information, I had come to know about your blog from my friend nandu , hyderabad,i have read atleast 7 posts of yours by now, and let me tell you, your website gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanks a to once again, Regards, How to create batch file
ReplyDeleteThank you very much Nandkishor..
Delete