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.
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".
Click "Browse..." and find the Node.JS (node.exe) executable.
Add a custom title to your shortcut.
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.
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.
Name the Shortcut
Update the description/name of the shortcut.
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...)