Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Task Scheduler Ends Unexpectedly, Adverse Consequences

13 Sep 2012   #1

Windows 7 Professional 64 bit
Task Scheduler Ends Unexpectedly, Adverse Consequences

I have set up Task Scheduler to execute batch programs using a programming language known as SAS. Normally things work properly, the task ends as expected, and a log file is created.

Today, the task ended unexpectedly (actually, I know why, I set the task to end after 30 minutes, because the task shouldn't take more than about 2 minutes). The problem is that the log file that is being written by this program is now locked, and I cannot delete it or move it edit it. Other files used in this task have the same problem. If I try to delete it, I get the Windows message that says: "The action can't be completed because the file is open in SAS" (even though SAS is no longer open because the task has ended). This is completely repeatable, this has happened several times now, with identical results.

So, to be clear, my concern is not that the task ends unexpectedly. My concern is that I cannot edit or delete or move the log file, nor can I edit or delete or move any of the other files in use by the program.

Please advise.

My System SpecsSystem Spec

13 Sep 2012   #2

Windows 8 Core X64

What about booting to Safe Mode and logging in as Administrator. See if you can delete from there. You will have to enable the hidden Administrator account before doing this though:

Open a Elevated Command Prompt
To enable: Enter net user administrator /active:yes
To disable: Enter net user administrator /active:no

Or you could try installing Unlocker and see if it allows you to get rid of the files/folders.
My System SpecsSystem Spec

 Task Scheduler Ends Unexpectedly, Adverse Consequences

Thread Tools

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:16 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33