• Announcements


Create Log

9 posts in this topic

How do I create that log?


Is this wrong? START Ketarin.exe /database=home_apps /log=FILENAME


Because it comes back empty.

Share this post

Link to post
Share on other sites

based on the command line you've shared there are two possible issues.

1) is "home_apps" the full name of the database, or is it actually to be "home_apps.db"? The full file name is required.

2) assuming you're shelling it out using the start command, the syntax for start.exe should be:

start "" Ketarin.exe /database=home_apps.db /log=FILENAME.log

Start is a pain in that you always have to pass the window title as the first parameter or stuff just doesn't work. Empty quotes are the most common way of getting that done.

And finally, I assume you're also aware that the log file will not be written until Ketarin is closed. If you're trying to generate the log then continue processing, you'll actually want to use the "/wait" parameter for start as well, as so:

start "" /wait Ketarin.exe /database=home_apps.db /log=FILENAME.log

"/wait" ensures that command processing doesn't continue until Ketarin is closed. This would allow the next line of your batch to read the log file, for example.

Share this post

Link to post
Share on other sites

This command wont work because it doesn't have a trailing .db


start "" /wait Ketarin.exe /database=home_apps.db /log=FILENAME.log

Its just


It also produces an empty result if I try and add the .db onto the end of it.


Also the backup file thats created its usually 1.4MB and now its only 21k





Share this post

Link to post
Share on other sites

This one of my old scripts but still working. Try this:



cd /d %~dp0

set year=%date:~6,4%
set yr=%date:~8,2%
set month=%date:~3,2%
set day=%date:~0,2%
set hour=%time:~0,2%
set hour=%hour: =0%
set min=%time:~3,2%
set sec=%time:~6,2%

START ketarin.exe /database=home_apps.db /export=home_apps-%year%-%month%-%day%_%hour%%min%%sec%.xml
PING -n 5 localhost > NUL
START ketarin.exe /database=home_apps.db /log=log-%year%-%month%-%day%_%hour%%min%%sec%.log
PING -n 5 localhost > NUL
REN home_apps.db_*.bak home_apps.db_%year%-%month%-%day%_%hour%%min%%sec%.bak



Share this post

Link to post
Share on other sites

The first command opens Ketarin, performs a database export as XML and closes Ketarin.

The second command starts Ketarin with the specified database.

Regarding your problem. Where is your database file located? Is your database in the same folder as the EXE? Does another database exist in %AppData%?

Share this post

Link to post
Share on other sites

So when I run that command this is what happens and yes the database is in the same directory as the exe

I run the batch file, Ketarin opens, the cmd window closes, this file is created home_apps.db_2017-08-19.bak

I close Ketarin and that's it. So nothing is exported to XML

Nothing in the AppData folder

I also don't get any file created ending in .log.



Share this post

Link to post
Share on other sites

@jokerfool, you didn't actually answer any of my questions or provide details about what happens when you run the commands i shared. change it to reference your actual database name and tell us what happens. if it doesn't work, please answer ALL of the following questions so we can help (if in doubt, provide more information than you think is necessary, not less):

are you running it from a command prompt? a batch file? a shortcut?

are you running the command from in the directory where ketarin is located, or is the ketarin.exe file stored in a different folder within the path?

is the database file in the 'start in' or current directory?

what are the 'start in' directory and current directory?

have you tried running the command with full paths applied? (start "" /wait k:\Ketarin.exe /database=k:\home_apps /log=k:\FILENAME.log)

what version of windows are you running?

are network paths involved?

is it being run as a standard process or elevated?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now