command line output

Forum for DBF Commander discussing.

command line output

Postby joshHunger » Thu Feb 27, 2014 2:23 pm

Hi,

Thanks for this great software!

I'm testing it and having great results so far.
Now I need to operate the DBFcommander from the command line.
I was wondering if it is possible to get command line output?
When I try to print the output to a file like this :

Code: Select all
DBFCommander.exe -q "SELECT * FROM table_X WHERE table_ID='id'" >output.txt


I just end up with empty file

Regards,
J
Last edited by joshHunger on Thu Feb 27, 2014 2:34 pm, edited 1 time in total.
joshHunger
 
Posts: 3
Joined: Wed Feb 26, 2014 3:12 pm

Re: command line output

Postby Admin » Thu Feb 27, 2014 2:33 pm

Hi Josh,
Thanks for this great software!

we're glad that you like it :)

I was wondering if it is possible to get command line output?

Am I right that you need to view a DBF file in MS-DOS console? If so, then there is no such feature.
But you can execute SELECT ... INTO TABLE ... statement, and then open the destination DBF file with DBF Commander.
Best regards,
Oleg Zhechkov
User avatar
Admin
Site Admin
 
Posts: 124
Joined: Wed Apr 21, 2010 7:27 pm

Re: command line output

Postby joshHunger » Thu Feb 27, 2014 2:43 pm

Thanks for your reply!
I am adding a mobile app to older software that uses DBF.
I need to sync information between the webapp and the older sofware.

So I wanted to write a script that can access the DBF database via commandline using DBFCommander.
And at the same time access the mySQL database that is the backbone of the webapp.

Do you think this is possible?
joshHunger
 
Posts: 3
Joined: Wed Feb 26, 2014 3:12 pm

Re: command line output

Postby Admin » Thu Feb 27, 2014 3:00 pm

I think this is possible:
to write a script that can access the DBF database via commandline using DBFCommander.

But other actions are depend on what exactly you need to do.

BTW, you can also export a DBF file to a text CSV file with the following command:
Code: Select all
dbfcommander.exe -e "D:\Data\customer.dbf" "D:\customer.csv" ,
Best regards,
Oleg Zhechkov
User avatar
Admin
Site Admin
 
Posts: 124
Joined: Wed Apr 21, 2010 7:27 pm

Re: command line output

Postby joshHunger » Thu Feb 27, 2014 3:17 pm

That should do the trick ;)
Thanks!
joshHunger
 
Posts: 3
Joined: Wed Feb 26, 2014 3:12 pm


Return to DBF Commander Professional

Who is online

Users browsing this forum: No registered users and 3 guests

cron