Hi Glenn,
Welcome to the list. – I’d tend to say it’s difficult to give any helpful advice, because the problem is most probably due to your environment and the C# application. Did you manage to successfully run any other commands so far? Can you evaluate queries, receive system information via INFO, etc.?
Cheers, Christian
On Wed, Jul 20, 2016 at 9:14 AM, Glenn Theseira Glenn.Theseira@tal.com.au wrote:
Hi guys,
I have an issue which I hope someone can help.
I’m working on trying to use BaseX on the command line to create a database.
Below is an extract of the commands I’ve put into a batch file:
@ECHO SET CREATEFILTER *.xml> basex_auto_temp.txt @ECHO CREATE DATABASE %db_name% %dest%>> basex_auto_temp.txt "C:\Program Files (x86)\BaseX\bin\basex.bat" -c"C:\Temp\basex_auto_temp.txt"
I have no issues executing the batch file in a Windows Command Prompt and it created the database I expected correctly.
However, when I tried to execute the batch file from a C# Windows Forms application, for some reason, the database creation failed. It just didn’t create the database.
I just can’t figure out why and what’s the problem. I would really appreciate the help.
Thank you Glenn