Dopusrt and Windows Task Scheduler

I'm trying to run dopusrt in a bat file via the Windows Task Scheduler. It works fine when I launch the bat file manually but not via the Scheduler. Other instructions in the bat file that are before and after dopusrt are executed correctly. Dopusrt is called on this way:

"C:\Program Files\Directory Opus\dopusrt.exe"/cmd Print FOLDER="C:\Users\Sven\Videos" TO="C:\Users\Sven\File list.txt" AS=tab ENCODING=UTF8 FLATVIEW=grouped FORMAT="För skapande av filförteckning" QUIET

How is the scheduled task configured?

I have taken some screenshots. I hope they answer your question.




What are the * chars for at the start and end of the dopusrt command line?

It happened when I marked that the text should be italic.

So that's just how it came out on the forum rather than in your actual command line>

I'll fix the post up then.

You're missing a space between the " and the / after the command name, not sure if that would matter or not though.

As well as Jon's suggestion about the missing space, I would also change the task's General tab to Run only when user is logged on ("Kor endast nar andandaran ar inloggad"), else DOpusRT.exe may be run in a context where DOpus.exe isn't (and shouldn't be) running.

But I've set it to run at night, so I can't have that setting right?

It's probably not going to work if you aren't logged into the machine. (It might, but I'm not sure it will, or what would happen to the dopus.exe it would launch outside of your actual desktop. It doesn't really make sense to schedule GUI software like that.)

Doing something similar in an OnStartup script in Opus might make more sense than using Task Scheduler. (Or one which uses the new timer event, or that runs whenever a new window or tab opens and checks when it last generated the folder listing.)

It did not make any difference with a space between the " and the / after the command name.

I now changed to "Run only when user is logged on" and that worked. Hope it will also work tonight when the computer is in sleep mode. I'll stop now as it's past midnight for me.

It worked last night too! Thank you for the amazing support you provide!