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 10 Pro 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

Similar help and support threads
Thread Forum
Need help creating a task scheduler task to move files over a network.
Hello everyone, I need to have a task run that will move the contents of a folder from one computer to another over my home LAN. Files get downloaded during the night on one computer and then need to be transfered to another. Usually I am doing this by hand, but then though maybe I could get...
General Discussion
Task Scheduler - Create Task to Display a Message Reminder
How to Display a Message Reminder in Windows with Task Scheduler This will show you how to create yourself, or another user or group, a message reminder scheduled to display for when and how often you like in Windows 7 or Vista using Task Scheduler. All users on the computer will be able to...
Task Scheduler : Create Shut Down PC Automatically Task
How to Create a Task that will Shut Down the PC Automatically This will show a very easy way to create a task in the Task Scheduler that will shut down the PC whenever you like. This will work for Windows 7 and Windows Vista. Let's get started! 1) In the Windows start menu search box type...
Task scheduler unable to load task status/active tasks at startup.
My task manager is unable to load task status/active tasks at startup. I get the message: "The selected task "{0}" no longer exists. To see the current tasks, click Refresh." When I refresh I get the same message. I checked and found that under Microsoft the problem was in the defrag...
Performance & Maintenance
Task Scheduler failing to start task with merged network locations
I have two routers I usually connect to (work and home) and each have wireless access. That means there are essentially 4 network locations I have listed. I have merged each respective network location (wired and wireless) into their own singular network location - "Work" and "Home". I also...
General Discussion

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 10:17.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App