'Why doesn't my batch file execute automatically despite being placed in "Startup" folder?

This must sound too naive because I am not a programmer. I need help with a batch file execution.

There are two user accounts on my Windows XP enabled PC and one of these accounts is used by my brother. Sometimes I need to leave messages for him to read as a reminder of something, for example, to back up his personal folders when he logs in next time.

So, I created a simple batch file with the following code:

@echo off  
msg * It's time to backup your folders!

When executed by double clicking, the file works fine and shows the expected message. I placed a copy of the batch file in "C:\Documents and Settings\Brother\Start Menu\Programs\Startup" but couldn't make it execute automatically when my brother logged in.

Could somebody please show me where I went wrong?



Solution 1:[1]

According to this answer on Superuser, the startup folders for XP are actually in

%AllUsersProfile%\Start Menu\Startup
%UserProfile%\Start Menu\Startup

So the Programs\Startup may be used for something else.

Solution 2:[2]

If you are using Windows 10, there are 2 things that may be doing this:

    • Your file needs Administrator privileges (When i copy any file to startup with Admin privileges it will not work). - My experience
    • When you boot your computer wait a bit (30 - 50 seconds) to load all files make sure to don't do anything.

This is my experience in Windows 10 please correct me if im wrong in anything

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Community
Solution 2 Aultr