Create and run a script |
A script is a user specified command structure that can execute a task, for example an unattended scheduled file transfer. You create the script in the Script dialog box as a tree structure consisting of:
The following example describes how to create a script that copies a file from the Guest to a Host on a specified date and time. To create this script
If you do not specify a file type extension, the script will get the file type extension .dws.
The Global Settings dialog box is displayed.
When you are satisfied with the global settings, click OK to close the dialog box.
Specify a date and time for the copying, and click OK to close the dialog box. The Wait command is added to the script and displayed in the tree structure.
In the Connect to Host dialog box, specify how you want to connect to the Host, for example using a communication profile. Select communication profile and specify IP address and logon credentials for the Host. The Connect command is added to the script and displayed in the tree structure.
The Copy dialog box is displayed. On the General tab, in the Guest section, specify the file that you want to copy to the Host. In the Host section, specify the location on the Host that you want to copy the file to, and change any other settings as necessary. Note You cannot browse, since the Guest is not yet connected to the Host. Click OK to close the dialog box.
You have now created a script that will copy the Test.txt file to one specific Host on a specific date and time. If you want to copy the Test.txt file to a number of Hosts, the easiest way to specify this in the script is to first edit the script file (Copy document.dws, located in \\Application Data\Netop\NetOp Remote Control\Guest\script\) in Notepad and then edit it further in the Script dialog box.
The script you have created automatically copies the Test.txt file to a specified range of Host computers on the specified date and time. Note The Guest also contains a couple of slightly more advanced example scripts that you can study to see what you can do with Script. See example1.dws and example2.dws on the Script tab. You can open them in Notepad to see the contents. Once the script has been executed, you can check the script log file (\\Application Data\Netop\NetOp Remote Control\Guest\) to see if the script was executed successfully. See also
|