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->General: New Users Forum Page: 1 2 3 4  Previous   Next
Cataloging other media?
Author Message
DVD Profiler Desktop and Mobile RegistrantAgrare
Registered: May 22, 2007
Reputation: High Rating
United States Posts: 1,033
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
The below code should do what Mediadogg says (step 5 of his instructions):

Quote:

@ECHO OFF

IF /i %1% == book GOTO StartBookProfiler
IF /i %1% == wine GOTO StartWineProfiler
GOTO StartDVDProfiler

:StartBookProfiler
    copy bookdb.dpt onto FauxLanguage.dpt
    start DVDProfiler with /CommandFile=c:\bookdb.txt
GOTO :EOF

:StartWineProfiler
    copy winedb.dpt onto FauxLanguage.dpt
    start DVDProfiler with /CommandFile=c:\winedb.txt
GOTO :EOF

:StartDVDProfiler
    copy yourlanguage.dpt onto FauxLanguage.dpt
    start DVDProfiler with /CommandFile=c:\Default.txt
GOTO :EOF


It's currently set up for wine, book, and regular but you should be able to easily add any other 'Profilers' you make. also, you'll need to change file names and possibly directory locations depending on where you save the file, pretty sure from mediadogg's example it needs to be in the location of the translation file. Also it's case insensative so "StartDVDPro WINE" is the same as "StartDVDPro wine"

-Agrare
DVD Profiler Unlimited RegistrantMuckl
That's my common name.
Registered: April 9, 2009
Reputation: Great Rating
Germany Posts: 858
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Thanks mediadogg, great solution! 

And thanks Agrare, but the given batch code doesn't work that way yet (maybe only on Vista/7 ?). Here's a modified, working example – at least on WinXP:

StartProfiler.bat
Quote:

@ECHO OFF

IF /I "%1%" == "book" (
  GOTO StartBookProfiler
) ELSE IF /I "%1%" == "wine" (
  GOTO StartWineProfiler
) ELSE (
  GOTO StartDVDProfiler
)

:StartBookProfiler
  COPY /Y "D:\AppData\DVD Profiler\Translations\BookProfiler.dpt" "D:\AppData\DVD Profiler\Translations\StartUp.dpt" > nul
  START "" "C:\Programs\DVD Profiler\dvdpro.exe" /CommandFile="D:\DVD Profiler\BookProfiler.txt"
  GOTO :EOF

:StartWineProfiler
  COPY /Y "D:\AppData\DVD Profiler\Translations\WineProfiler.dpt" "D:\AppData\DVD Profiler\Translations\StartUp.dpt" > nul
  START "" "C:\Programs\DVD Profiler\dvdpro.exe" /CommandFile="D:\DVD Profiler\WineProfiler.txt"
  GOTO :EOF

:StartDVDProfiler
  COPY /Y "D:\AppData\DVD Profiler\Translations\DVDProfiler.dpt" "D:\AppData\DVD Profiler\Translations\StartUp.dpt" > nul
  START "" "C:\Programs\DVD Profiler\dvdpro.exe" /CommandFile="D:\DVD Profiler\DVDProfiler.txt"
  GOTO :EOF



You can save the StartProfiler.bat and the command files wherever you want, if you use complete paths (like in my example; and note the quotes around paths with spaces).
EDIT: The command files have to be specified with complete paths anyway.

As a last step create three shortcuts with these lines as their targets (of course you have to change the path to the batch file depending on its location):

"D:\DVD Profiler\StartProfiler.bat" book
"D:\DVD Profiler\StartProfiler.bat" wine
"D:\DVD Profiler\StartProfiler.bat"



A hint on number (2): After you have copied the language file and named it "FauxLanguage.dpt" or whatever, the chosen language will be listed twice in DVD Profiler, because DVD Profiler uses the string that's saved inside the file, not the filename itself. So, if the language doesn't change the first time you try out the batch, you just have to switch to the other one.
 
1.0.1, iPhone 3GS, iOS 4.1.0

Trivia v0.3.1
My HSDB v5 additions, HTML windows and other stuff
 Last edited: by Muckl
DVD Profiler Desktop and Mobile RegistrantAgrare
Registered: May 22, 2007
Reputation: High Rating
United States Posts: 1,033
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
I didn't actually test it cause I don't have DVDProfiler installed on this computer. But in my defense I did say that you possibly need to change the file locations. I just took mediadoggs psuedo code and made it real code. When I tested I just had it echo the the commands mediadogg provided. I probably should have stated that in my post.

Also, the nested IF ELSES gets ugly so its probably easier to add additional Profilers if you just do a series of IF statements, with the GOTO statement it wont execute the other if clauses anyway

and to solve the listing the language file twice problem, instead of FauxLanguage.dpt just call the file FauxLanguage.tmp or any other made up file extension you want

-Agrare
 Last edited: by Agrare
DVD Profiler Unlimited RegistrantMuckl
That's my common name.
Registered: April 9, 2009
Reputation: Great Rating
Germany Posts: 858
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting Agrare:
Quote:
I didn't actually test it cause I don't have DVDProfiler installed on this computer. But in my defense I did say that you possibly need to change the file locations. I just took mediadoggs psuedo code and made it real code. When I tested I just had it echo the the commands mediadogg provided. I probably should have stated that in my post.

I didn't mean to dis you or your example, I just wanted to provide a bug-fixed version.

Quote:
Also, the nested IF ELSES gets ugly so its probably easier to add additional Profilers if you just do a series of IF statements, with the GOTO statement it wont execute the other if clauses anyway

Of course, you've got a point here. It's easier that way if you don't code yourself.

Quote:
and to solve the listing the language file twice problem, instead of FauxLanguage.dpt just call the file FauxLanguage.tmp or any other made up file extension you want

You're right, that's a good idea.
 
1.0.1, iPhone 3GS, iOS 4.1.0

Trivia v0.3.1
My HSDB v5 additions, HTML windows and other stuff
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,460
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Makes me feel all warm and fuzzy (ok, no snide remarks, heh heh). Nice work guys! 
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
DVD Profiler Unlimited RegistrantStar ContributorVirusPil
uncredited
Registered: January 1, 2009
Reputation: Highest Rating
Germany Posts: 3,087
Posted:
PM this userDirect link to this postReply with quote
^wtf? 
DVD Profiler Unlimited RegistrantStar ContributorJimmy S
Registered: March 15, 2007
Canada Posts: 1,982
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
I got the same reaction when I saw it this morning
This spam robot is sure confused or it's a very bright monkey
DVD Profiler Unlimited RegistrantMuckl
That's my common name.
Registered: April 9, 2009
Reputation: Great Rating
Germany Posts: 858
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
mediadogg is a spam bot?! WTF?! 



 
1.0.1, iPhone 3GS, iOS 4.1.0

Trivia v0.3.1
My HSDB v5 additions, HTML windows and other stuff
    Invelos Forums->General: New Users Forum Page: 1 2 3 4  Previous   Next