On Windows "hello:cmd": "cd scripts && helloworld.cmd" could be written as "hello:cmd": "scripts\\helloworld.cmd"
"hello:cmd": "cd scripts && helloworld.cmd"
"hello:cmd": "scripts\\helloworld.cmd"
That didn't work for me on Windows (I tried it in CMD and PowerShell), that's why I went for the cd alternative. Did it work for you?
cd
Yes. But only when using double backslashes as directory separator.
I see it now, thank you! I'll update the post ASAP.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
On Windows
"hello:cmd": "cd scripts && helloworld.cmd"
could be written as"hello:cmd": "scripts\\helloworld.cmd"
That didn't work for me on Windows (I tried it in CMD and PowerShell), that's why I went for the
cd
alternative. Did it work for you?Yes. But only when using double backslashes as directory separator.
I see it now, thank you! I'll update the post ASAP.