beckhoff TE1000 — 6.22 Copy-AdsFile

TcXaeMgmt Version 7.X | Copy-AdsFile SessionId Copy-AdsFile [-Path] [[-Destination] ] [-Directory ] [-Upload] [- Force] -SessionId [ ] DESCRIPTION OBSOLETE: Use Copy-AdsRemoteItem instead. This cmdlet is maintained for backward compatibility only. This Cmdlet implements ADS file transfer operations with TwinCAT Systems. Files can be Uploaded or Downloaded from / to TwinCAT Systems that are reachable from the local system. That means all systems that are registered as "actual routes" and are online within the network.

EXAMPLES Example 1 PS > Copy-AdsFile -Address CX_00001 -Path CurrentConfig.xml -Destination c:\tmp\Config1.xml - Directory BootDir Downloads the CurrentConfig.xml from the BootDir of the target system to 'c:tmpConfig1.xml' Example 2 PS > Copy-AdsFile -Address CX_00001 -Upload -Path c:\tmp\Config1.xml - Destination CurrentConfig.xml -Directory BootDir Uploads the file "c:tmpConfig1.xml" on local system to the Target BootFolder of system CX_00001 Example 3 PS > Copy-AdsFile -Address CX_0001 -Path c:\ReadMe.txt -Destination d:\tmp\ Downloads the File "C:ReadMe.txt" from System CX_0001 to the local system and store it under d:tmpReadMe.txt PARAMETERS -Path Specifies, as a string array, the path to the files to copy.

Wildcard characters are permitted. If this Cmdlet is in Download mode, this is the specifier for the file on the remote side (the specified TwinCAT target system), dependant of the StandardFolder Parameter. In case of 'Uploading' these are the local FullPaths of the file to be 'uploaded' to the TwinCAT target/remote system. The source path. Type: String[] Parameter Sets: (All) Aliases: Required: True Position: 0 Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: True -Destination The Destination path/specifier, where the file is stored. If the Cmdlet is in Download mode, this has to be the FullPath of the target location.

In case of 'Uploading' this can be the FileName or a FullPath dependent of the StandardDirectory Parameter. The Destination / Target path. Type: String Parameter Sets: (All) Aliases: Required: False Position: 1 TE1000 116 Version: 1.5.0