Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Desktop Feature Requests Page: 1  Previous   Next
Startup Parameter: Database name
Author Message
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Hi,

I have several databases, the biggest being my DVD DB. But I also have one for contributions and on for my books.

The startup time of DVDP seems to be dependent upon the database it tries to open initially.

So it would be cool if there could be a start parameter like "/db=Books" where I can pre-select the database the program will open.
Karsten
DVD Collectors Online

DVD Profiler Desktop and Mobile RegistrantStar ContributorStaid S Barr
Registered: Oct 16, 2003
Registered: May 9, 2007
Netherlands Posts: 1,536
Posted:
PM this userDirect link to this postReply with quote
This already exists.

You can use the command OpenDatabase "Books" in a command file. (See the Help function).
Hans
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Yeah, but the command file is only loaded after the program has started up with the last active DB. :-/
Karsten
DVD Collectors Online

DVD Profiler Unlimited RegistrantStar ContributorMithi
Sushi Annihilator
Registered: March 13, 2007
Reputation: Superior Rating
Germany Posts: 2,217
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting DJ Doena:
Quote:
Yeah, but the command file is only loaded after the program has started up with the last active DB. :-/

As workaround, how about ending Profiler with a command-file that loads a very small or even empty DB?

To go the whole nine yards, you could get mediadogg's MyTools and make menu-buttons for "Loading DB 1", "DB 2" etc and "Exit" and link them to the respective command-file

cya, Mithi
Mithi's little XSLT tinkering - the power of XML --- DVD-Profiler Mini-Wiki
DVD Profiler Unlimited RegistrantStar ContributorNexus the Sixth
Contributor since 2002
Registered: March 13, 2007
Reputation: High Rating
Sweden Posts: 3,197
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Good idea.
First registered: February 15, 2002
 Last edited: by Nexus the Sixth
DVD Profiler Unlimited RegistrantFredLooks
phpDVDProfilerDude D5/7/2
Registered: March 13, 2007
Canada Posts: 350
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Couldn't you write a tiny program that pushed the DB name into the appropriate registry key and then spark DVDP?
-fred
DVD Profiler Unlimited RegistrantStar Contributorbbbbb
on steroids
Registered: March 14, 2007
Posts: 5,734
Posted:
PM this userDirect link to this postReply with quote
Quoting DJ Doena:
Quote:
But I also have one for contributions

How does this work? Why a separate database for contributions?
Don't confuse while the film is playing with when the film is played. [Ken Cole, DVD Profiler Architect]
DVD Profiler Unlimited RegistrantStar ContributorKulju
Registered: March 14, 2007
Finland Posts: 2,337
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Quoting bbbbb:
Quote:
Quoting DJ Doena:
Quote:
But I also have one for contributions

How does this work? Why a separate database for contributions?

You cannot have two titles with same locality and UPC in one db. I think that his local db differs so much from what can be contributed, that it doesn't make any sence to change everything back as he likes after the contribution. For example in initial contribution you cannot select which fields you contribute.  I cannot figure out anything else reason.
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting Kulju:
Quote:
Quoting bbbbb:
Quote:
Quoting DJ Doena:
Quote:
But I also have one for contributions

How does this work? Why a separate database for contributions?

You cannot have two titles with same locality and UPC in one db. I think that his local db differs so much from what can be contributed, that it doesn't make any sence to change everything back as he likes after the contribution. For example in initial contribution you cannot select which fields you contribute.  I cannot figure out anything else reason.


That's pretty much it. I have my own rules for titles, SRP values, cast & crew and others. And since I'm often contribute initial child profiles for TV shows I simply backup these profiles, restore them into the contrib DB, change them according to the rules (i.e. removing all cast & crew) and then contribute it.

Quoting FredLooks:
Quote:
Couldn't you write a tiny program that pushed the DB name into the appropriate registry key and then spark DVDP?


Awesome idea, dude! I though the "current DB" was stored in that binary file that knows of the DBs.

You don't even need a program. A simple batch file that changes the reg and then starts DVDP.

Thanks, man!


DVDP_Contrib.cmd:

Quote:
@echo off
reg.exe add "HKCU\Software\Invelos Software\DVD Profiler" /v "CurrentDatabase" /t REG_SZ /d "Contrib DB" /f
"C:\Program Files\DVD Profiler\dvdpro.exe"
Karsten
DVD Collectors Online

 Last edited: by DJ Doena
DVD Profiler Unlimited RegistrantFredLooks
phpDVDProfilerDude D5/7/2
Registered: March 13, 2007
Canada Posts: 350
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting DJ Doena:
Quote:
DVDP_Contrib.cmd:

Quote:
@echo off
reg.exe add "HKCU\Software\Invelos Software\DVD Profiler" /v "CurrentDatabase" /t REG_SZ /d "Contrib DB" /f
"C:\Program Files\DVD Profiler\dvdpro.exe"


I clearly need to bone up on the reg.exe command Learn something new here every day. Thanks
-fred
DVD Profiler Unlimited RegistrantStar Contributorbbbbb
on steroids
Registered: March 14, 2007
Posts: 5,734
Posted:
PM this userDirect link to this postReply with quote
Quoting Kulju:
Quote:
I think that his local db differs so much from what can be contributed, that it doesn't make any sence to change everything back as he likes after the contribution.

I see. My complete database is fellow users and Invelos reviewers approved. So rules compliant, without exception.
Don't confuse while the film is playing with when the film is played. [Ken Cole, DVD Profiler Architect]
    Invelos Forums->DVD Profiler: Desktop Feature Requests Page: 1  Previous   Next