Task Scheduler deleting bat file and removing permissions for folder.


  1. Posts : 1
    Windows 7 Home Premium
       #1

    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 Computer


  2. Posts : 7,100
    W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
       #2

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

    Roy
      My Computer


  3. Posts : 7,351
    Windows 7 HP 64
       #3

    Can be your antivirus that found your bat file suspicious.
      My Computers


  4. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #4

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 01:38.
Find Us