Windows 10 Startup Batch Script stopped working


  1. Posts : 18
    Windows 10
       #1

    Windows 10 Startup Batch Script stopped working


    Hi all,

    Quite a while ago I have created a startup script that does some basic file copying. It's nothing fancy: it runs after I log on to Windows and copies a few files. The batch file is in my "Documents" folder, I placed a shortcut to it in the "Startup" folder using "shell:startup". The shortcut is still there and I can run the script manually at will, both from the shortcut or the file itself.

    But it no longer runs at startup, whether I shut down or restart. Any clues for me? TIA!

    Windows 10.0.19042.868
    Last edited by MMZWHAT; 21 Mar 2021 at 14:03. Reason: Added Windows version
      My Computer


  2. Posts : 34,948
    Win 10 Pro (1903) (2nd PC is 21H2)
       #2

    Hi, what happens if you replace it temporarily with another one that does something even more trivial like a simple prompt?

    Just wondering if you're running into some issue with, say, this:
    How to enable Controlled folder access to protect data from ransomware on Windows 10 | Windows Central
      My Computers


  3. Posts : 18
    Windows 10
    Thread Starter
       #3

    dalchina said:
    Hi, what happens if you replace it temporarily with another one that does something even more trivial like a simple prompt?

    Just wondering if you're running into some issue with, say, this:
    How to enable Controlled folder access to protect data from ransomware on Windows 10 | Windows Central
    Thanks for the idea. Nothing has changed with an even simpler batch and Windows Ransomware is not currently enabled at all.
      My Computer


  4. Posts : 34,948
    Win 10 Pro (1903) (2nd PC is 21H2)
       #4

    If stuck you could try launching it using the task scheduler.

    Do you have any other shortcuts in the Startup folder that work?
    If none, try creating a new one.

    Download and use Autoruns (free from MS) and inspect the startups- make sure the shortcut isn't disabled.
    Windows 10 Startup Batch Script stopped working-1.png
      My Computers


  5. Posts : 7,456
    Windows 10 Home 20H2
       #5

    MMZWHAT said:
    I placed a shortcut to it in the "Startup" folder using "shell:startup".
    Does the shortcut appear on Task Manager? In my example below, the shortcut is "Testing".

    Windows 10 Startup Batch Script stopped working-startup.jpg
      My Computer


  6. Posts : 18
    Windows 10
    Thread Starter
       #6

    Matthew Wai said:
    Does the shortcut appear on Task Manager? In my example below, the shortcut is "Testing".

    Windows 10 Startup Batch Script stopped working-startup.jpg
    The shortcut was in the list and was enabled.

    dalchina said:
    If stuck you could try launching it using the task scheduler.

    Windows 10 Startup Batch Script stopped working-1.png
    I added the script as a scheduled task and it's been working.

    As long as this workaround functions, it's good enough for now. My investigative spirit will have to wait for a little more free time to figure out why the original solution failed.

    Thank you all
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:47.
Find Us




Windows 10 Forums