Skip to content

Windows Send to http-server with NodeJS

15 December 2016

Serve any directory from web server using ‘Send to’ menu in Windows.

Install Node JS

Open command prompt, run

npm install -g http-server

Verify it works. From any directory, run

http-server

Open up Windows Explorer and enter into address bar

shell:sendto

You should see a handful of familiar shortcuts – this maps to a folder C:\Users\<yourusername>\AppData\Roaming\Microsoft\Windows\SendTo

In that folder, create Windows shortcut to c:\Users\<yourusername>\AppData\Roaming\npm\http-server.cmd

Now you can right-click on any folder in Windows, select Send to > http-server and enjoy the folder contents served up via web server.

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: