Freebox Jukebox

E-Touch General Category => Support and Bug Reports => Topic started by: Novalak on January 08, 2009, 05:14:11 AM

Title: Updating database and starting freebox through commandline
Post by: Novalak on January 08, 2009, 05:14:11 AM
Hey Guys

I am able to set the config to update the database but it does not launch freebox

Am i doing something wrong?

C:\Program Files\Freebox V4\Config 4.exe /UPDATE records /LAUNCH
Title: Re: Updating database and starting freebox through commandline
Post by: Barcrest on January 08, 2009, 06:03:01 AM
Check you have the correct path for the launch... I just checked it and the command line you specified should work.
Title: Re: Updating database and starting freebox through commandline
Post by: Novalak on January 08, 2009, 08:24:23 AM
ok i think ive worked out why is doesnt work


it updates perfect but when it goes to launch, it says path not found

Now...

ive updates config.ini to have C:\Program Files\Freebox V4\freebox4.exe

BUT when it does a command update, i can see the path saying C:\Program Files\Freebox V4\freebox.exe which obviously isnt found

it doesnt seem to use to config.ini when run from a command
Title: Re: Updating database and starting freebox through commandline
Post by: Barcrest on January 08, 2009, 11:27:52 AM
C:\Program Files\Freebox V4\freebox.exe

Is the old default command line. Are you using the latest config?

Anyway you can add the path after the launch statement...

C:\Program Files\Freebox V4\Config 4.exe /UPDATE records /LAUNCH C:\Program Files\Freebox V4\freebox4.exe

Try that and it should work.
Title: Re: Updating database and starting freebox through commandline
Post by: Novalak on January 08, 2009, 02:46:26 PM
nope still doesnt

this is annoying me now lol

everything is installed in default location...am i being an idiot or is there something wrong

i have the latest build installed...
Title: Re: Updating database and starting freebox through commandline
Post by: Barcrest on January 08, 2009, 03:19:39 PM
Well using the command line i specified above, do you see the correct path appear in the config while it is updating?
Title: Re: Updating database and starting freebox through commandline
Post by: Novalak on January 08, 2009, 11:09:55 PM
no it doesnt, while its updating still has the wrong path even though i use the command you gave me

C:\Documents and Settings\TEMP>"C:\Program Files\Freebox V4\Config 4.exe" /UPDAT
E records /LAUNCH C:\Program Files\Freebox V4\freebox4.exe

... and its the latest build (B10)

Title: Re: Updating database and starting freebox through commandline
Post by: Barcrest on January 09, 2009, 01:16:31 PM
Odd it updates the path for me....
Title: Re: Updating database and starting freebox through commandline
Post by: allroy on June 14, 2009, 04:03:26 PM
I'm having some issues with this as well.  Finally getting around to setting up a script that robocopy's all my stuff to the C drive then Updates the library.

According to "config 4" /? the available switches are:
/LAUNCH         Launch Freebox on completion, or specify a path to another app to launch
/HTML            Turns on HTML Generation
/NAMESWAP    Swaps (THE) Around to the back of the name
/GENRE           Turns on the Genre Shortcuts creation
/DRIVE Path     Sets the path to use to make the library
/NEW type       Generates a new database.  Type is either Records Video or Karaoke
/UPDATE type   Genereates a new database.  Type is either Records Video or Karaoke

There are a few boxes I'd like to check that there don't seem to be options for....the most important being "use Album Name on Compilations".  Also...just nit-picking here, but if update and New both generate a new database, ...why have 2 options?

I've tried doing just a /UPDATE records, but it doesn't seem to work right.

anyone have a good quick something they've written up that's working?

also, just like Novalak I can't get it to launch with just "/Launch" or "/LAUNCH C:\Program Files\E-Touch Jukebox\Etouch5.exe"

It seems like just doing a "config 4" /UPDATE records would use the settings saved in the ini, but it doesn't.
Title: Re: Updating database and starting freebox through commandline
Post by: Barcrest on June 15, 2009, 10:32:17 AM
Ok i will look at fixing this then.
Title: Re: Updating database and starting freebox through commandline
Post by: fordman on June 15, 2009, 03:09:19 PM
I cant get the commandline to work, but I can get this batch file to work. I did have to name change the config 4.exe to config4.exe (remove the space between config_4). Also, I cant get the /LAUNCH to work with or without the etouch.exe file path.

Begining of batch file

START /d "C:\Program Files\E-Touch Jukebox" Config4.exe /DRIVE c:\Music /NEW records /UPDATE records
START /wait /d "C:\Program Files\E-Touch Jukebox" etouch5.exe
EXIT

End of batch file

The only drawback is that the config4.exe still runs in the background while e-Touch.exe runs.

But, when I click on the config4.exe desktop shortcut, it opens config4.exe and the 'Run When Completed' is already checked, but from the batch file, it isnt. Weird  ??? This would take care of the config4.exe running in the background and I wouldnt need the second START line in the batch file.

But the batch file work great as far as updating! I'm going to do more testing later!

Hope this helps for now  :beer

Fordman
Title: Re: Updating database and starting freebox through commandline
Post by: allroy on June 15, 2009, 05:16:28 PM
fordman, for some reason running your command line totally horked my database.  no big deal but i have tons of entries for the same albums all over the place. 

just reporting my findings.
Title: Re: Updating database and starting freebox through commandline
Post by: fordman on June 15, 2009, 07:51:07 PM
After I got home and tested on a much bigger song database, It's not so much of a cure all  :downer

So I just did it with the first line in the batch file

START /d "C:\Program Files\E-Touch Jukebox" Config4.exe /DRIVE c:\Music /NEW records /UPDATE records

And that seemed to update the records just fine.

Then I started etouch on its own and the new additions and deletions where shown without issue.

I still can figure out why the 'Run when Completed' wont stay checked when I use the batch file Vs just clicking on the desktop shortcut.  ???  ???

I will play around more with this later tonite!

Fordman
Title: Re: Updating database and starting freebox through commandline
Post by: fordman on June 15, 2009, 07:53:23 PM
Quote from: allroy on June 15, 2009, 05:16:28 PM
fordman, for some reason running your command line totally horked my database.  no big deal but i have tons of entries for the same albums all over the place. 

just reporting my findings.

Allroy,

Did you change the batchfile in the line 'START /d "C:\Program Files\E-Touch Jukebox" Config4.exe /DRIVE c:\Music  /NEW records /UPDATE records' c:\Music to where you store your music? I did forget to mention that earlier  :tommy.

Fordman
Title: Re: Updating database and starting freebox through commandline
Post by: allroy on June 15, 2009, 07:58:11 PM
yeah man.  I changed everything applicable to mine.  also, instead of renaming your file "config4.exe" you could have just called:
"C:\Program Files\E-Touch Jukebox\Config 4.exe"


just out of curiosity, and also in the post I made earlier I asked, why are you using /NEW and /UPDATE if they both do the same thing?
Title: Re: Updating database and starting freebox through commandline
Post by: fordman on June 15, 2009, 08:14:15 PM
I tried to just use /UPDATE, but it didnt seem to do anything. So I guess I had to Generate a new database?  ??? Not sure.

I havent played with this long enough to really know what I'm doing yet. I was at work messing with it, now I'm at home and have a few moments to fool with it more.

I'll keep ya's posted!  :beer

UPDATE: This is why I used the /NEW command in the batch file string:

(http://www.ppcomponents.com/etouch/batcherror1.jpg)

I kept getting this error everytime.

Fordman
Title: Re: Updating database and starting freebox through commandline
Post by: allroy on June 15, 2009, 08:23:49 PM
we're in the same boat.  I'm at work too.  bouncing back and forth between what i'm SUPPOSED to be working on and what I WANT to work on.   :beer

like I said before it seems like the /update switch should use the info stored in the INI file.  it'd be awesome if it did that.  makes it pretty simple.  Just like launching the program and clicking the update button.

That seems like it'd be the most useful.  once you have your default options set up in the config, how often do you change them?  for me it's easy.  never.
Title: Re: Updating database and starting freebox through commandline
Post by: fordman on June 15, 2009, 08:34:11 PM
Same here, I dont really ever change the config4.exe options at all.

I have mine setup just the way I like it.

Every now and then someone comes over and says "Hey, can this do ???? " and i'll play with it after they leave and find out if it can.

If I cant get it to do what is asked, then I answer to them with a "NO! tried that already." Then usually they just reply 'OK!'.

:beer

Fordman.
Title: Re: Updating database and starting freebox through commandline
Post by: allroy on June 15, 2009, 08:56:43 PM
typically changes people ask about aren't with the database building process though, right?  it's usually something that can be configured through the program's options. 

also, I get that same error you put up, but if you add the other switches telling it where to get the data from, it works.  but still seems to rebuild the entire db in a way that doesn't look right to me.
Title: Re: Updating database and starting freebox through commandline
Post by: fordman on June 15, 2009, 09:24:01 PM
My albums look good when E-touch starts up. Nothing different than using the config4.exe regularly.

I take a closer look and report my findings!
:)
Fordman
Title: Re: Updating database and starting freebox through commandline
Post by: allroy on June 15, 2009, 10:03:55 PM
i'll take a screenshot tonight if I can but it's not right.   :tommy
Title: Re: Updating database and starting freebox through commandline
Post by: Barcrest on June 15, 2009, 11:07:11 PM
Someone has spare time sand mrs...  :beer
Title: Re: Updating database and starting freebox through commandline
Post by: fordman on June 16, 2009, 12:37:19 AM
The Mrs. gets home 3 hours after I do  ;D and I dont have to pick up the boy untill 6:15pm so that gives me a few hours to tinker!  :beer

I also umpire baseball in my "Spare" time.  ;D

The Mrs. is really understanding!  ::)  :beer

Fordman  ::)
Title: Re: Updating database and starting freebox through commandline
Post by: allroy on June 16, 2009, 05:48:01 AM
Quote from: Barcrest on June 15, 2009, 11:07:11 PM
Someone has spare time sand mrs...  :beer

mine ain't gone yet.  leaves tomorrow...well later today actually

fuck i'm tired.  i got my before screen shot, i'll have to get the after tomorrow.  i'm rebuilding the database right now....g'night.
Title: Re: Updating database and starting freebox through commandline
Post by: Barcrest on June 16, 2009, 07:48:51 AM
Quote from: allroy on June 16, 2009, 05:48:01 AM
Quote from: Barcrest on June 15, 2009, 11:07:11 PM
Someone has spare time sand mrs...  :beer

mine ain't gone yet.  leaves tomorrow...well later today actually

fuck i'm tired.  i got my before screen shot, i'll have to get the after tomorrow.  i'm rebuilding the database right now....g'night.

How about now?
Title: Re: Updating database and starting freebox through commandline
Post by: allroy on June 17, 2009, 03:07:46 PM
well for whatever reason it worked last time I did it.  it'd still be nice if it used the defaults when just using the /UPDATE switch or if you could at least tell it to check all the other boxes. with other switches.