Search code examples
windowsbashscriptinggit-bashstartup

How to open the Windows Startup folder in file explorer via bash?


Startup folder path: %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup, I've tried:

echo "$APPDATA\Microsoft\Windows\Start Menu\Programs\Startup"

start "$APPDATA\Microsoft\Windows\Start Menu\Programs\Startup"

Although the echoed path is correct, the start command just opens a CMD window, does anyone know how to open the Startup folder in file explorer via bash?

P.S. I'm using Git Bash.


Solution

  • The following command does the job:

    start '' "$APPDATA/Microsoft/Windows/Start Menu/Programs/Startup"
    

    Reference: Can I use the "start" command with spaces in the path?