How to create shortcuts for Node.JS and Notepad for PodPi

This tutorial will teach you how to create two shortcuts that can be used instead of the Command Prompt on a PC.  But using shortcuts located on your Desktop, students will be able to edit the "led.js" file and execute Node.JS with the "led.js" file.

desktop.jpg

Desktop Icons

PodPi usually uses the Command Prompt in order to launch the Notepad editor and the Node.JS JavaScript runtime engine.  By creating shortcuts located on the desktop, students can perform the same actions without having to type the commands in the Command Prompt window.

This method may be useful if the computer does not provide access to the Command Prompt Window (assuming the privileges to execute these two programs are available).

 

Create a New Shortcut

A shortcut is an icon usually located on the Windows Desktop, and linked to the underlying program to execute, including any parameters.

To create a shortcut, right click on the mouse and you will see a new menu bar.

Click on "New" and then "Shortcut".

short01.jpg
 

Node.JS Shortcut

Node.JS is used to execute the JavaScript engine used to run PodPi scripts.

Click "Browse..." and find the Node.JS (node.exe) executable.

Click Next

short02.jpg
 

Custom Title

Add a custom title to your shortcut.

short03.jpg
 

Parameters

In order to execute the correct PodPi script, the shortcut will need to provide the script name to launch when executing the node.exe program.

Right click on the newly created shortcut.

Click on "Properties"

 

Specify the JS script

Update the "Target" section of the properties to include the complete path to the PodPi JS script to launch when node.exe is executed.

In the picture, the JS script is called bin.js

Make sure the name you provide here (and the complete path) is the same as the name (and path) you will specify in the next section you create.  If the path and the name are not the same, Node will not be able to execute the correct program.

short05.jpg

Notepad Shortcut

Create a shortcut for the Nodepad editor.  Notepad is used as the editor of choice for PodPi. 

Note: If you prefer to use you own editor, you can specify a different path and name for your own editor.

short11.jpg
 

Name the Shortcut

Update the description/name of the shortcut.

short12.jpg
 

Add the filename

Right click on your shortcut and select "Properties".

Update the "Target" section and add the full path and name of the PodPi script.  Here we used "led.js".  Make sure the name matches the name you provided in the previous steps (not like I did here...)

short13.jpg