How to allow Drag'n'Droping files on Node javascript files?

0

I have a Windows batch that does something when I drop a file on it. I now need more functionality with a lot of string operations and I want to use Node.js.

However, when I hover my script over the javascript file, it shows "Move to" and does not allow to drop the file on the script:

With batch:

enter image description here

With js file:

enter image description here

How can I configure Windows 10 to treat .js files as executables and allow dropping files on them? I'm quite sure this worked fine on Windows 7.

Tomáš Zato - Reinstate Monica

Posted 2019-10-01T10:58:12.873

Reputation: 2 932

No answers