INTERACT FORUM

More => Old Versions => Media Center 12 (Development Ended) => Topic started by: benn600 on December 17, 2007, 10:08:46 am

Title: Command line switch to ask for library?
Post by: benn600 on December 17, 2007, 10:08:46 am
Is there a way to require MC to prompt the user for which library to use on startup?
Title: Re: Command line switch to ask for library?
Post by: Lasse_Lus on December 17, 2007, 11:17:01 am
mc12.exe /Library [library Name] Changes to the library specified by [library Name] (Media Center 12.0.384 and later)
Title: Re: Command line switch to ask for library?
Post by: benn600 on December 17, 2007, 12:27:20 pm
I did read about that when it was added.  I'm looking more for the library interface to popup and ask the user.

Usage would be on my laptop so when I'm at home I could select my server database, the server's library server, or a local database.  Otherwise, I'm always greeted with either an error (couldn't load library) or it connects to library server and downloads the database (wasting time) when I really want to use my own server database.

1. My database, only when I'm at home on wifi.
2. Server library server, only when I'm somewhere with internet/wifi access.
3. Local database, when I have no connectivity.
Title: Re: Command line switch to ask for library?
Post by: Doof on December 17, 2007, 12:38:19 pm
You could probably write a batch file that could prompt the user for the library to use, then it calls MC using the above command line switch to load the correct library.
Title: Re: Command line switch to ask for library?
Post by: Lasse_Lus on December 17, 2007, 01:36:59 pm
You could probably write a batch file that could prompt the user for the library to use, then it calls MC using the above command line switch to load the correct library.

yep...and then maybe fast launch the needed MC db with Launchy (.net)  :)