Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What is the command to type in the Windows Run that opens the user's Startup directory?

  • it's of a format similar to %windir% for Windows and %appdata% for application data
  • the site Computer Productivity has lots of the shortcuts, but not Startup

I'm trying to reduce RSI, so I try to use keyboard shortcuts for as much as possible.

share|improve this question

migrated from stackoverflow.com Sep 4 '10 at 6:45

This question came from our site for professional and enthusiast programmers.

    
"binged" is why Micros~1 search engines keep failing. –  grawity Jun 2 '09 at 7:49
    
Just completed my answer, with a suggestion as to where you could have seen a shorter version of that directory. –  VonC Jun 3 '09 at 6:08
    
"Keyboard shortcut" is used for key combinations like Ctrl-C rather than typed commands (even if those commands save time). –  Roger Pate Aug 29 '10 at 20:45
    
What is the command to type in the Windows Run that opens the user's Startup directory? “The” command? o.O –  Synetech Dec 8 '12 at 6:30
add comment

6 Answers

up vote 6 down vote accepted

It's the "shell" command. For example, I can type

shell:startup

in the Run dialog to pop open the \Start Menu\Programs\Startup directory.

There are a LOT of the "shell" commands, and a long listing is at Access special folders easily using the shell command.

share|improve this answer
1  
If you need the startup for all users, use shell:Common Startup –  gentlesea Feb 14 '13 at 15:34
add comment

Create a small VBS program startup.vbs:

set objShell = CreateObject("WScript.Shell")
objShell.Run("""" & objShell.SpecialFolders("Startup") & """")

This would open current user's startup folder in Windows Explorer. This would work in every still supported Windows version, in every language.

You can use "AllUsersStartup" instead of "Startup" if you need. You can read about SpecialFolders property here.

share|improve this answer
    
Nice tip - I'm trying to use PowerShell for all my scripting, and it's easy to forget the good things that are in VBScript –  SteveC Jun 4 '09 at 6:09
add comment
"%USERPROFILE%\Start Menu\Programs\Startup"

does work on Windows XP.

As far as I can tell, there are no further shortcuts. You can see here a list of all variables and there is no other way to reference Startup.

However, you may have seen a shorter version in some scripting language macros, like Autoit:

@StartupDir     current user's Startup folder
share|improve this answer
    
yeah I got that, but I've got this annoying recollection of a tip which was a lot shorter –  SteveC Jun 2 '09 at 15:05
add comment

For Windows 7 or Windows Vista, start run:

c:\ProgramData\Microsoft\Windows\Start Menu\Programs\startup
share|improve this answer
add comment
Start Menu\Programs\StartUp

If it doesn't work, try:

%UserProfile%\Start Menu\Programs\StartUp

Or you can go define your own variable - %st% for example. In Windows XP it was under System Properties - Environment.

Also, the Command Prompt, combined with tab completion and doskey aliases is pure awesomeness, in my opinion.

share|improve this answer
add comment

The variable is %username%. So, for my account (roaming) in Windows Vista:

  • Start, run,

  • C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.