|
Configuring User-Defined Apps
Select the User-Defined Apps tab in the Setup form.
Command Line: This
is the command which is executed when the app is
selected.
Display Title: This
is the text displayed in the menu. If left blank the
Command Line is displayed instead.
Hide: If
set to true will minimise the Network Notepad window
when the app is run.
The following Network Notepad variables may be included
in the Command Line and Display Title definitions:
$IPADDRESS -
is substituted for the most recently clicked object's IP
address. $IPADDRESS is truncated at a "/" character.
$ADDRESS -
is substituted for the most recently clicked object's IP
address (and is not truncated like $IPADDRESS is).
$HOSTNAME -
is substituted with the most recently clicked object's
hostname.
$BROWSE -
invokes the default browser/application.
E.g.1. $browse http://$ipaddress..... will open the
object's ip address in a web browser window.
E.g.2. $browse c:\docs\$hostname.doc..... will try and
open for example "router1.doc" in whatever application
is configured to handle .doc files.
$EXPLORE -
invokes an instance of Internet Explorer.
E.g. $explore $ipaddress...... to browse the object by
ipaddress.
Copy2Clipboard - Copies the resolved definition to
the windows clipboard.
$FILENAME - is substituted for the current
diagram's filename (.ndg).
|
TIP
A Traceroute Function
Window That Doesn't Close Automatically.
Create a traceroute.bat file in the
Network Notepad folder which contains:
@echo off
tracert -d %1
pause
Define the function button as:
traceroute.bat $ipaddress |
|