I am using 6.40.4, i am looking for a method (command line or scheduled job) to save database after amiquote finishes import.
Thanks
I am using 6.40.4, i am looking for a method (command line or scheduled job) to save database after amiquote finishes import.
Thanks
You can use OLE automation. There is SaveDatabase method of Broker.Application object.
See
https://www.amibroker.com/guide/objects.html#Application
But for what it is worth, you don't need to worry about it, since database is autosaved on exit anyway.
Thanks, i want to save before i take a backup, i noticed, my backups are always one day old as the my service does not save the data before creating a backup.
Hello erukumk,
please have a look/study to this post and search via this forum, you will find everything:
https://forum.amibroker.com/t/how-to-specify-the-download-site-for-amiquote-in-batch-processor/1877
As Tomasz recommend study Amibroker OLE Object Model.
Finally do after AmiQuote OLE process is finished, i use a vb.net app ...
Dim AB as Object = CreateObject("Broker.Application")
AB.SaveDatabase()
I can confirm it is working 100% with AmiQuote and AmiBroker.
Best regards,
Peter
Or standalone JScript (.js file extension)
AB = new ActiveXObject("Broker.Application");
AB.SaveDatabase();
This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.