Registered: March 13, 2007 | Posts: 2,692 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Reputation: | Posts: 2,217 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Posts: 2,692 |
| Posted: | | | | 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 |
|