Can I repair task scheduler by using my Windows 7 Home Premium upgrade disc? This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. I have the same question Report abuse. Details required :. Cancel Submit. Frederik Long. I think it is rather unlikely that the Task Scheduler service is corrupted.
A flawed shadow volume service seems a more likely cause. Hi Pete Your code has given me some vaulable knowledge but unfortunately has failed to give me a solution to the Win7 Schduler crap. I've gotten it to point where Win7 scheduler will fire up ffmpeg from within my app but ffmpeg is now failing with its internal processes I'm going to replace the Win7 scheduler and see how that goes.
Many thanks for all help. Your ideas have already been incorporated into another project of mine so are greatly appreciated. Well, I'm glad you found a solution, even if it wasn't the one I provided. I have to say I'm surprised though I would have thought the security options available in the library I recommended would cover just about any situation. Yes, some of the code I provided has some other cool possible uses Glad your getting some use out of it.
To do this it utilises the external FFmpeg. The app works perfectly in a standalone mode but fails when run as a task under the Windows 7 Scheduler. Process but it fails in the same way. So, for those of you who love a challenge; see if you can get the Win7 Sched to run FFmpeg from within my app. You can download a fully working cut down version of my app which demonstrates the problem.
The download is the entire project folder and includes ffmpeg. Get it here. The output folder will have the web images saved into it along with the wmv and mov files. They go away quickly. Set up a Win Schedule and no ffmpeg data will be shown. Hopefully someone will take up the challenge and figure out how to make the scheduler work with external apps. Let me know if you need more info. Posted Jun pm malcomm.
Mike Meinz Jun pm. I don't have the time to debug your app for you but I will include source code from my app that works fine. Also, in the future please post follow-ups by using Improve Question or post a new question. Combine Path. GetDirectoryName System. Location , "ffmpeg. EndOfStream Application. ReadLine Application. DoEvents ' ' Start including the log at the line after "libpostproc".
If strProgramOutputLine. End If Application. Dispose End Try End Function. By the way, the most likley cause of your problem is that one of the filenames passed in the parameter to ffmpeg. Probably because it lacks a full path or the path is incorrect in some way. My code above captures the output from the execution of ffmpeg. That can be very helpful to solving the issue. Not really much difference in our code when it all boils down except that I am referencing a font via 'drawtext' which you do not.
Good idea about capturing the entire error stream, didn't think of that - I was only capturing the frame rate for progress indication. The font is in the bin folder where it should be and therefore supposedly doesn't need a path specified. Remember it works fine in standalone and this problem only occurs under the Scheduler.
Note the single quotes around it in case there are spaces in the path name. And that is working now in Scheduler. BTW my paths are correct. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully.
Tasks are the main component of the Task Scheduler. For information on what tasks are and what their components are, see the following topics:. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode.
0コメント