Skip to content

Instantly share code, notes, and snippets.

@Alcotana
Last active September 18, 2025 13:54
Show Gist options
  • Select an option

  • Save Alcotana/5eab32b2d97d1b41ad1db167e7de297c to your computer and use it in GitHub Desktop.

Select an option

Save Alcotana/5eab32b2d97d1b41ad1db167e7de297c to your computer and use it in GitHub Desktop.
Open directory with "Node.js command prompt" using right-click menu command "Node.js here"
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\directory\background\shell\nodejs]
"Icon"="cmd.exe"
@="&Node.js here"
[HKEY_CLASSES_ROOT\directory\background\shell\nodejs\command]
@="cmd.exe /s /k pushd \"%V\" & nodevars.bat"
[HKEY_CLASSES_ROOT\directory\shell\nodejs]
@="&Node.js here"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\directory\shell\nodejs\command]
@="cmd.exe /s /k pushd \"%V\" & nodevars.bat"
@WesleyGoncalves
Copy link

WesleyGoncalves commented May 19, 2018

Thanks for the code @Alcotana. If you want you can change the title of the window adding & title Node.js command prompt to the lines 8 and 15 so it will have the same title as the "original".

@selimdoyranli
Copy link

Thanks.

@Nagorik
Copy link

Nagorik commented Dec 24, 2018

thanQ..

@Ve1vet
Copy link

Ve1vet commented Jul 2, 2023

Thanks.

@Overbrd
Copy link

Overbrd commented Sep 18, 2025

Works as expected on Windows 11, Thank You for the info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment