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 Technical Support Page: 1  Previous   Next
Running command files whilst dvd profiler is open
Author Message
DVD Profiler Desktop and Mobile Registrantpauls42
Reg: 31/01/2003
Registered: March 13, 2007
United Kingdom Posts: 2,692
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Not sure how long this has been around, but I run command files to automate backups and exports from dvd profiler.

I used to run the following as a scheduled task:


OpenDatabase Default
BackupAll "E:\Apps\DVD Profiler\backup-auto.dpb" RenameExisting
Close



and this worked quite happily..

But since I leave DVd Profiler open more frequently, since I run the IOS version, the backup fails sometimes since dvd profiler is already open.

I have tried running the task with a 'close' as the first command..


Close
OpenDatabase Default
BackupAll "E:\Apps\DVD Profiler\backup-auto.dpb" RenameExisting
Close


and have also tried


BackupAll "E:\Apps\DVD Profiler\backup-auto.dpb" RenameExisting
Close


both always fail with an error telling me that dvd profiler is already open. I thought the 'close' would have closed the running program, and I thought without doing an open it would just run with whats open already?

I can close dvd profiler every evening before I go to bed but I did think one of the two options would work
Paul
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 pauls42:
Quote:
I used to run the following as a scheduled task:

I think the startup-parameters are crucial here.
I guess your scheduled-task looks something like
"C:\Program Files\DVD Profiler\dvdpro.exe" /CommandFile=[FileName]
add /CloseExisting and everything should be fine, I think.

The "Close" at the start of the command-file is "too late" because by then the second DVD Profiler instance would already be running.

cya, Mithi
Mithi's little XSLT tinkering - the power of XML --- DVD-Profiler Mini-Wiki
DVD Profiler Desktop and Mobile Registrantpauls42
Reg: 31/01/2003
Registered: March 13, 2007
United Kingdom Posts: 2,692
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting Mithi:
Quote:
Quoting pauls42:
Quote:
I used to run the following as a scheduled task:

I think the startup-parameters are crucial here.
I guess your scheduled-task looks something like
"C:\Program Files\DVD Profiler\dvdpro.exe" /CommandFile=[FileName]
add /CloseExisting and everything should be fine, I think.

The "Close" at the start of the command-file is "too late" because by then the second DVD Profiler instance would already be running.

cya, Mithi


thanks for this, it looks like it will do the biz - I'll give it a try.

I hadn't thought of looking at startup parameters - I was just looking at the command file paaremeters.. 
Paul
    Invelos Forums->DVD Profiler: Desktop Technical Support Page: 1  Previous   Next