transferFile()
Transfers a file from the agent machine running this step to another agent machine. Enter the fully qualified machine ID of the target machine, for example, mymachine.root.kaseya
. Then enter the full path and file name of the source file you wish to send from the currently selected agent. Then enter the full path and file name of the target file on the target machine. Similar to—but in the opposite direction from—the writeFileFromAgent() command.
Operating systems supported: Windows
Example
transferFile("ag-gold-w732.root.unnamed", "c:\temp\testfile.txt", "c:\temp\testfile.txt", "All Operating Systems", "Halt on Fail")
NOTE This command will transfer the file one time only for each agent running the procedures containing the step. The file will not be transferred again on subsequent executions, even if the source or destination files have changed.