Create a Startup Script in Windows 10

I'd like to add a shortcut on my desktop that I can just double click to be able to launch "shell:startup" as per the suggestion in this Microsoft Article which says in part;

To add or remove an app from the Startup tab, press the Windows Logo Key  + R, type shell:startup, and then select OK. This opens the Startup folder.

I've tried creating a batch file to do the above, but it doesn't work for me... I just notice a DOS windows pop up for a second and then it disappears.

Can anyone show me how I can create an icon to be able to do this?

My system is a Windows 10 Professional install.

Many thanks...

Andrew
LVL 18
Andrew LeniartSenior EditorAsked:
Who is Participating?
 
McKnifeCommented:
Andrew, your shell: startup goes to the personal startup.
The location you want is: shell:common startup
which translates to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp (which you can let a shortcut point to).
0
 
Omar SoudaniSystem Support EngineerCommented:
Hello,

check the attached file, rename it to .bat and try.
startup.txt
0
 
McKnifeCommented:
Hi.

It resolves to %appdata%\Microsoft\Windows\Start Menu\Programs\Startup and that is where you can create a shortcut to.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Andrew LeniartSenior EditorAuthor Commented:
Thanks, guys, but there's a problem.

If I use Omars idea, I get this result:

Omar's Suggestion
If I create a shortcut as per McKnife's idea, I get this result:

McKnife's Suggestion
Yet, if I do a search on my C: drive for My AutoHotkey Script.exe I get the following result in Windows File Explorer

Search C Drive for My AutoHotkey Script.exe
Then, if I right click on the second result and select "Open File Location" I get this result, which is what I want...

Open File Location
What's going on here??  

The reason I want to have this shortcut on my desktop is that I frequently update my AuthHoyKey Script and then compile it into an EXE. I want a quick way to be able to replace the "My AutoHotkey Script.exe" whenever I've updated and recompiled it.

Why does it show up when I use the Open File Location but doesn't show up with the two shortcut methods that have been suggested?

Hope can I create this shortcut so that it opens as per the last example, so I can just delete the My AutoHotkey Script.exe and replace it with the updated recompiled My AutoHotkey Script.exe ?

Hope that makes sense? I don't understand how to create a shortcut on my desktop that will open up the Startup folder where My AutoHotkey Script.exe shows up.

Any ideas?
0
 
Andrew LeniartSenior EditorAuthor Commented:
Thanks very much McKnife. That was driving me crazy! Creating the shortcut as you suggested to the path in your last comment works just as I wanted. Very much appreciate your help!

Andrew
0
 
Omar SoudaniSystem Support EngineerCommented:
I believe the shell:startup will open the startup folder under "users" in your case it's different. Just copy the path to the text file. check attached
startup.txt
0
 
Andrew LeniartSenior EditorAuthor Commented:
Thanks, Omar, but McKnife's solution worked great and saved me writing a script too. I do appreciate your help as well though, so thank you.
0
 
Omar SoudaniSystem Support EngineerCommented:
You're Welcome! Glad your problem is solved.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.