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
******************************************************************* The information contained in this mail message is confidential and may also be legally privileged. If you are not the intended recipient, please note that any use, dissemination, further distribution, or reproduction of this message in any form what so ever, is strictly prohibited. If the mail is in error, please notify me by return email, delete your copy of the message, and accept my apologies for any inconvenience caused. *******************************************************************
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
Hi Christian,
Thank you for your reply. I will check again my environment and C# application. It must be something I haven't done in my code.
Cheers!
-----Original Message----- From: Christian Grün [mailto:christian.gruen@gmail.com] Sent: Wednesday, 20 July 2016 7:49 PM To: Glenn Theseira Cc: BaseX-Talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] Creating database on command line from C#
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
******************************************************************* The information contained in this mail message is confidential and may also be legally privileged. If you are not the intended recipient, please note that any use, dissemination, further distribution, or reproduction of this message in any form what so ever, is strictly prohibited. If the mail is in error, please notify me by return email, delete your copy of the message, and accept my apologies for any inconvenience caused. *******************************************************************
basex-talk@mailman.uni-konstanz.de