|
NirComLine v1.40
Copyright (c) 2003 - 2004 Nir Sofer
|
Description
NirComLine is a small command-line utility that allows you to do some useful tasks without
displaying any user interface. By running NirComLine with simple command-line option, you can
write and delete values and keys in the Registry, write values into INI file, dial to your
internet account or connect to a VPN network, restart windows or shut down the computer,
create shortcut to a file, change the created/modified date of a file, change your display
settings, and more...
System Requirements
This utility can work in all 32-bit Windows operating systems: Windows 9x/ME,
Windows NT, Windows 2000, and Windows XP.
However, some of NirComLine commands works only on Windows NT/2000/XP.
Versions History
05/05/2004 | 1.40 |
- New commands: wait, setvolume, setsysvolume, execmd, exec.
- New commands for executing NirComLine on remote machines: remote and multiremote.
- Folder and system variables.
- New option in setfiletime command - set the file time to the current time (now parameter)
- New parameter in shortcut command - hot key.
| 01/03/2004 | 1.30 |
- New commands: qboxcom, beep, stdbeep, cdrom, urlshortcut, monitor, screensaver, standby, and hibernate.
- Fixed the bug with ~x string sequences.
| 08/01/2004 | 1.20 |
- New commands: setdialuplogon, script
- Special string sequences (~q, ~t, ~n and so on) to allow you to embed quotes and new line characters into the parameters of any command.
| 19/11/2003 | 1.11 |
New options in shortcut command
| 10/10/2003 | 1.10 |
New commands: killprocess, service, memdump, win, lockws.
| 09/09/2003 | 1.00 |
First release.
|
License
This utility is released as freeware for personal and non-commercial use.
You are allowed to freely distribute this utility via floppy disk, CD-ROM,
Internet, or in any other way, as long as you don't charge anything for this.
If you distribute this utility, you must include all files in
the distribution package, without any modification !
Using NirComLine utility
This utility is a standalone executable, and it doesn't require any installation process
or additional DLLs. just copy the executable to any folder you want, and run it
with the desired command-line option, according to your needs.
General Syntax Of NirComLine
NirComLine.exe {showerror} [command] [command parameters]
The showerror parameter is optional.
If you specify this parameter, an error message will be displayed on the screen
if an error is occurred during the execution of the command. Otherwise, any error will be ignored.
For example:
NirComLine.exe showerror rasdial "dial1"
NirComLine.exe rasdial "dial1"
In above 2 examples, NirComLine will try to dial with the "dial1" entry.
If the dialing process is failed on the first example, an error message describing the problem
will be displayed. If the dialing process is failed on the second example, error message
won't be displayed.
Special String Sequences
Starting from version 1.20, NirComLine allows you to insert special characters into any parameter in NirComLine commands.
The following table describes the special string Sequences that you can use:
~n
|
New line characters (CR-LF)
|
~q
|
Double-quote character: "
|
~t
|
Tab character
|
~xnn
|
Allows you to represent any character by providing its ascii code in 2-digit Hexadecimal number.
For Example: ~x41 ('A' character), ~x27 (single-quote character)
|
~%variable%
|
Represents a system variable.
For more information about this option, read below
|
~~
|
Represents a single '~' character.
|
Example:
infobox "This is the first line~n~qThis is a second line, in quotes~q" "Example"
The above example displays a message-box containing 2 lines.
System Variables
Starting from version 1.40, NirComLine provides special variables that represents folders and
other variables on your system. Each variable starts with '~' character, followed by
the variable name enclosed with '%' characters. For example: ~%folder.desktop% represents
your desktop folder.
The following table specifies the variables that you can use:
sys.varname
|
You can use this option to represent any environment variable on your system.
For example: ~%sys.username%, ~%sys.windir%, ~%sys.computername%, ~%sys.logonserver%, ~%sys.temp%, and so on...
|
folder.desktop
|
Represents the user's desktop folder.
|
folder.start_menu
|
Represents the user's start-menu folder.
|
folder.programs
|
Represents the user's programs folder (under the start-menu folder).
|
folder.startup
|
Represents the user's startup folder.
|
folder.recent
|
Represents the user's recent folder.
|
folder.favorites
|
Represents the user's favorites folder.
|
folder.cookies
|
Represents the user's cookies folder.
|
folder.appdata
|
Represents the user's Application Data folder. (For example: C:\Documents and Settings\Administrator\Application Data)
|
folder.common_desktop
|
Represents the common desktop folder.
|
folder.common_start_menu
|
Represents the common start menu folder.
|
folder.common_programs
|
Represents the common programs folder.
|
folder.common_startup
|
Represents the common startup folder.
|
folder.common_favorites
|
Represents the common favorites folder.
|
folder.windows
|
Represents the windows folder. (e.g.: C:\Windows)
|
folder.system
|
Represents the system folder. (e.g.: C:\Windows\System32)
|
Examples:
- Create a shortcut under the start menu-programs folder:
shortcut "c:\winnt\system32\calc.exe" "~%folder.programs%\My Programs" "Calculator"
- Delete a shortcut in the user's desktop:
execmd del "~%folder.desktop%\calc.lnk"
- Display the current logged-on user:
infobox "The current logged-on user is ~%sys.username%" "logged-on user"
Executing NirComLine commands on remote computers
Starting from version 1.40, you can execute all NirComLine commands in remote computers.
However, you should be aware of the following restrictions and problems:
- This option is only available for Windows NT, Windows 2000 and Windows XP.
You cannot use it on Windows 9x machines.
- You must log on to the remote machine as administrator.
- The Schedule service in the remote machine must be started.
(By default, the Schedule service is automatically started in all NT/2000/XP machines, so
you don't have to worry too much about this)
- Due to some limitations of the Schedule service, you have to wait up to 60 seconds
until the command is actually executed in the remote machine.
- The command in the remote machine is executed under 'SYSTEM' account, and thus some
commands may not work in the same way as you execute them locally.
There are 2 commands for executing NirComLine in remote machines:
- remote - for executing command on a single remote computer.
- multiremote - for executing command on multiple remote computers.
NirComLine Commands
Feedback
If you have any problem, suggestion, comment, or you found a bug in my utility,
you can send a message to nirsofer@yahoo.com
|
|