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 deleting bat file and removing permissions for folder.

31 Mar 2017   #1
Sniper15

Windows 7 Home Premium
 
 
Task Scheduler deleting bat file and removing permissions for folder.

I have a simple bat file that launches firefox and runs an in-browser macro that logs me on. It's worked flawlessly, at 7am and 3pm every day.
Suddenly today, Task Scheduler launches it and mid-bat file, deletes it.
- I tried to copy paste the macro back in and rename it, it tells me I don't have permission to do that.
- I take ownership of the entire folder, and it still says I don't have permission.
- I created a new folder and put the macros back inside it, and re-made the ask in Task Scheduler. It deleted itself and wrecked the permissions for the new folder.
- I put the tasks themselves under System32. It deleted the bat file again.

- The clock on/clock off bat files work fine when launched manually. Something about the Task Scheduler is screwing them up, even when I hit "Run with the highest privilege" checkbox.

I'm on Windows 7 Home Premium. I've had Windows Updates disabled since January so nothing could have changed overnight like that.
Please tell me someone knows how to fix this and why it's screwed up?


My System SpecsSystem Spec
.
31 Mar 2017   #2
torchwood

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
 
 

Hi Sniper,
FF updated 2 days ago, is TS looking at/for the old version??

Roy
My System SpecsSystem Spec
31 Mar 2017   #3
Megahertz07

Windows 7 HP 64
 
 

Can be your antivirus that found your bat file suspicious.
My System SpecsSystem Spec
.

31 Mar 2017   #4
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Hello Sniper15,

Have you tried rewriting your batch file a couple of times, preferably to algorithms that don’t achieve your goal, and seeing if the problem persists? Does the problem occur if all that the contents of your batch file had was a single “pause” or “echo” statement?

Reduce your batch file to it’s simplest non-functioning form. Upload the batch file to us along with the exported Task Scheduler task. If we can mimic the problem we can solve it.
My System SpecsSystem Spec
Reply

 Task Scheduler deleting bat file and removing permissions for folder.




Thread Tools




Similar help and support threads
Thread Forum
Adding/Deleting tasks from Task Scheduler using command lines
Hi all, is there a way i can add/delete a task in task scheduler using command line? Thank you for your time reading this. Regards, theobserver.
General Discussion
Windows Task Scheduler Batch File
Hello: I have a Batch File, to move a file to a different folder, that I would like to run from Windows Task Scheduler on a windows server 2008 R2 . The batch file itself works, however running it from Windows Task Scheduler does not work. I am trying to move the file within the L drive. I...
General Discussion
Windows Task Scheduler Move File
Hello: Using windows task scheduler, how do I move a file to a different folder, there is a box Program/Script that can browse a file then there is a box Add arguments, where and how do I add the from and to file path Thanks much!
General Discussion
Deleting File Permissions Problem
I have an external NAS drive that over the years I have dumped files to and backed up drives to. I now want to do some housekeeping and delete old folders but for example the Local settings folders/files that I have dumped off for other family members wont allow me to delete them. There are...
General Discussion
How to Schedule Folder Content Deleting Task
In my office , a program to launch we need to deleted the contents of the folder C: users >local> app data > isolated stoarge > Delete Contents. How can i schedule this Task . so no need to go to every system and delete this files automatically.
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 16:21.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App