Skip to content

Instantly share code, notes, and snippets.

@piscisaureus
Created July 6, 2010 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piscisaureus/465171 to your computer and use it in GitHub Desktop.
Save piscisaureus/465171 to your computer and use it in GitHub Desktop.
@echo off
Setlocal
set P=%~dp0
set S=%~f1
set PATH=%P%bin\;%PATH%
IF NOT "%S%"=="" GOTO :Script
"%P%node\bin\node.exe"
GOTO :End
:Script
FOR /F "delims=:" %%i IN ('cygpath "%S%"') DO "%P%node\bin\node.exe" "%%i"
GOTO :End
:End
Endlocal
Echo Node has Exited.
Pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment