|
Command Line Mode
From version 1.50 on, LanHelper provides command line support for Wake-On-LAN and Remote Shutdown feature. Now LanHelper users are able to implement one-click operations using shortcuts, or schedule Wake-On-LAN & Remote Shutdown tasks with Windows Task Scheduler.
Command line syntax:
LanHelper <XML file>
Load an XML file that you previously saved in LanHelper.
Example: LanHelper c:\data.xml
LanHelper /wol f:<text or xml file> [g:<XML group>] [ip:<ip address>]
Perform Wake-On-LAN operation.
| f:<text or xml file> |
Specify a text file or LanHelper XML file that contains MAC addresses of machines you want to boot.
To a text file, its format is show below. In General tab of Wake-On-LAN dialog click Save button to get a valid-format text file.
MAC address [; IP broadcast address [; machine name]]
Example:
00-11-22-33-44-55
00-11-22-33-44-55;255.255.255.255
00-11-22-33-44-55;192.168.1.255
00-11-22-33-44-55;255.255.255.255;PC101 |
| g:<XML group> |
Only select one or more XML groups of target machines from XML file. If a group name contains spaces, use double quotes to wrap it. Separated multiple group names with comma. |
| ip:<ip address> |
Specify a broadcast address or unicast address. By default it's 255.255.255.255. |
Example: LanHelper /wol f:c:\data.xml g:group01 ip:192.168.10.255
LanHelper /shutdown f:<text or xml file> [g:<XML group>] [restart] [force] [t:xx] [c:<comment>]
Perform Remote Shutdown operation.
| f:<text or xml file> |
Specify a text file or LanHelper XML file that contains names of machines you want to shutdown.
To a text file, it only contains a list of machine names, one machine per line. |
| g:<XML group> |
Only select one or more XML groups of target machines from XML file. If a group name contains spaces, use double quotes to wrap it. Separated multiple group names with comma. |
| restart |
Restart computer instead of shutdown. |
| force |
Forcibly close the running applications with unsaved changes |
| t:xx |
Daley xx seconds. The default is zero. |
| c:<comment> |
Specify comment to display in shutdown dialog box. Maximum of 127 characters. |
Example: LanHelper /shutdown f:c:\data.xml g:group01 restart force t:60 c:shutdown comment here
LanHelper /abort f:<text or xml file> [g:<XML group>]
Perform Abort Remote Shutdown operation.
| f:<text or xml file> |
Specify a text file or LanHelper XML file that contains names of machines you want to abort shutdown.
To a text file, it only contains a list of machine names, one machine per line. |
| g:<XML group> |
Only select one or more XML groups of target machines from XML file. If a group name contains spaces, use double quotes to wrap it. Separated multiple group names with comma. |
Example: LanHelper /abort f:c:\data.xml g:group01
After a command was successfully executed, no message will be displayed. The operation results are logged into the log file. If the parameter is wrong, only the main window will display.
|