I want to have a simple batch file that opens QuickBooks, then FTP's the QB data file to a server. No big deal, but I want the FTP transfer to occur AFTER QuickBooks is closed. How do I trigger an event only when closing an application?
Thanks.
Didn't find your answer? Ask the community — no account required.
K
klunk
The QB SDK has a feature called UIEventSubscription. One of the events to which you can subscribe is CompanyFileEventOperation. Your application will receive notification when a company file is Opened and Closed.
If you don't have the SDK, get it at:
formatting link
There are forums there as well for SDK questions.
K
klunk
More... obviously a batch file alone will not handle this. You will need to write an SDK capable application.
H
HeyBub
QBFTP.BAT
(command to invoke QB) (command to invoke FTP) EXIT
A
Allan Martin
(command to invoke QB) (command to invoke FTP) cls echo Another fine job done by the kid. Pause EXIT
J
jeff
Unfortunately, QB does not behave as expected; the command following it in the batch file executes immediately, without regard to QB's state.
The answer, from another forum, provides the desired response (clearly thought through and tested before replying):
Launches QuickBooks Monitors QB's status (whether open or closed), and When closed, launches the WIndows FTP client (which then calls a script of commands to run on the corresponding FTP Server)