nodejs-portable icon indicating copy to clipboard operation
nodejs-portable copied to clipboard

How to start with a command?

Open KolyaKorruptis opened this issue 8 years ago • 2 comments

How can I start this with a command, eg from a batch file or a shortcut?

KolyaKorruptis avatar Sep 27 '16 08:09 KolyaKorruptis

I'm interested in that too. Does nodejs portable even support this?

nitricware avatar Feb 17 '17 10:02 nitricware

In App\Server.cmd I made some adjustments to help myself out. I wanted to be able to pass in a path in which to start NodeJsPortable so right before cmd /k I added:

set gotopath=%1
CD %gotopath%

The %1 here means the first argument after NodeJsPortable.exe, for example: NodeJsPortable.exe D:\dev\project\src will start the app and then move to the D:\dev\project\src directory.

Hope this helps!

nul800sebastiaan avatar May 04 '18 08:05 nul800sebastiaan