You can now do command line calls for the BirdDog Enterprise Windows client, in version 9.0 or higher.
Start BirdDogSoftware.Enterprise as normal. Select your database and login in as a user.
Select the menu item: Utilities\Generate Command Line Text...
Select the command you want the command line call to execute. This list will only show commands that Development has activated and that the user that is currently logged into Enterprise has the permission to execute.
You will see the database and user that will be used in the command line text.
After you click "generate", you will see text like this:
BirdDogSoftware.Enterprise.exe /coa:on /Database:(office5),(1),(jg98es),(),(),(True),(),() /Name:PrintOrderAcknowledgement /ParamValues:Starting Order No, Ending Order No
The first thing you need to do is adjust the BirdDogSoftware.Enterprise.exe portion of the line to match the location that Enterprise is installed.
You then replace Param Values with the parameters you are submitting. So if you wanted to print Order Acknowledgements for order #20234-20237, for example. The command line text now looks something like this:
C:\Users\jeremiah\Desktop\BirdDogSoftware\Enterprise\BirdDogSoftware.Enterprise.exe /coa:on /Database:(office5),(1),(jg98es),(),()'*),(true),(),() /Name:PrintOrderAcknowledgement /ParamValues: 20234, 20237
If you were calling this from another program and had variables num1 and num2 as strings, you could call:
"C:\Users\jeremiah\Desktop\BirdDogSoftware\Enterprise\BirdDogSoftware.Enterprise.exe /coa:on /Database:(office5),(1),(jg98es),(),()'*),(true),(),() /Name:PrintOrderAcknowledgement /ParamValues:" & num1 & "," & num2
Windows Authentication
The Command Line Text Generator uses Windows Authentication. This will use the information of the person logged into Windows. A bduser still needs to be set up for this person, and the Windows login information set for this person. This is just their login information,without the domain name
Here is a complete list of all available commands you can use:
- /ClearDefaultDatabase:true - Clears the default database setting allowing the database chooser to display
- /COA:On - Tells Enterprise for Windows that this will be a command object activation, which will hide the standard UI and allow for the following parameters
- /Database:({Server}),(Database Type - Should always be 1),({Database}),({User - Should always be blank}),({Password - Should always be blank}),({Use Trusted Connection - Should always be True}),({License Name - Should always be blank}),({Serial Number - Should always be blank})
- /Name - Command Name
- /ParamValues - Parameter values to pass to the command
- /AdminMode:On- Tells Enterprise for Windows to only allow users with the admin role to login
- /Instance:{Instance Name} - Used to start Enterprise for Windows with a specific instance name's settings
- /POSFrontEnd:On - Used to start Enterprise for Windows in Point of Sale mode
- /AccessControlFrontEnd:On - Used to start Enterprise for Windows in Access Control mode