Execute ▶ Command
Purpose
The Execute ▶ command is used to run an external Windows program from within NOTEFILE.
Note: To use this feature, you need to have the Enable command execution option enabled. By default this option is enabled, so you can run commands. But, for security reasons you may wish to disable this option. This can be done by using the Setup... command from the File menu.
To execute a command
- Position the insertion point to a string containing a command in your notes file or completely select the command and its parameters (if any). Please, do not select a string that spans multiple lines.
- From the Card menu choose Execute ▶.
- From the Execute submenu select the displayed command and the command will be executed. If you have not selected a command and there are spaces or end of lines around the insertion point, then <Nothing> will be displayed and nothing will be executed.
Some example commands are given below. Execution depends on your Windows or Linux configuration and the programs installed on your computer. Note that, if you do not select some string, an automatic selection not including spaces and end of line characters will be made.
https://notefile.kadifeli.com/
mailto:test@example.com?Subject=Testing&Body=Your_message&Bcc=bcc@example.com&Cc=cc@example.com
telnet://india.colorado.edu:13/
ftp://ftp.hp.com/
C:\windows
notepad C:\Windows\System.ini
readme.txt
eventvwr.msc
\\filesrv\share1
The first four commands will try to access some URLs on the Internet. These are actually Internet protocols that your operating system recognizes. On Linux, the third line may need to be replaced with something like this:
-
gnome-terminal -- telnet india.colorado.edu 13
or
gnome-terminal -- netcat india.colorado.edu 13
The fifth command will open Windows explorer for the given directory
(if this directory is present). The sixth command will run
NOTEPAD.EXE program if it is present. If you select the parameter
C:\Windows\System.ini
together with the command
notepad
, then it will be given as parameter to the
notepad
command. The seventh command will try to open
the readme.txt
file from the current directory with
the system’s default text editor. The eighth command
will run Windows Event Viewer. The ninth command
will try to browse a directory on another server on your
local area network.
On a Linux environment, the following similar commands to the above may be used:
-
nautilus /boot
or just
/boot
gedit /etc/lsb-release
readme.txt
gnome-logs
smb://filesrv/share1
Other usage examples:
man:ls
(only Linux)tel:555-1234567
Keyboard shortcut
F9
Error messages
- Error running: ... Some system error message
-
When the command you are trying to execute cannot be run by the operating system, you will get this error message. The last line of the message may give you a clue of what the real problem is.
On Linux, you may not get any error message at all. For error or information messages; please, look at NOTEFILE’s stderr output if it was started from command line; otherwise check the
/var/log/syslog
file or the output of thejournalctl -f
command.