beckhoff TE1000 — 6.1 about_AdsFileProvider

TcXaeMgmt Version 7.X | about_AdsFileProvider STANDARDDIRECTORY NAMES The first path segment after the drive separator must be one of the following StandardDirectory names (case-insensitive): BOOTDIR - TwinCAT Boot folder (CurrentConfig, event logs) BOOTPROJECT - Boot project files (bootprj) BOOTDATA - Boot data files CONFIGDIR - TwinCAT configuration path GENERIC - Freely-chosen full file path INSTALLDIR - TwinCAT installation path REPOSITORYDIR - TwinCAT repository directory TARGETDIR - TwinCAT target path (routes, licenses, certificates) USING PATHS WITH CMDLETS The Copy-AdsRemoteItem cmdlet automatically detects the transfer direction from the path format.

If a path matches the ADS path pattern it is treated as a remote ADS path; otherwise it is treated as a local file system path.

# Upload (local to ADS) — destination is an ADS path Copy-AdsRemoteItem -Path c:\tmp\Config.xml -Destination "Local:\BOOTDIR\CurrentConfig.xml" -Force # Download (ADS to local) — source is an ADS path Copy-AdsRemoteItem -Path "Local:\TARGETDIR\StaticRoutes.xml" -Destination c:\tmp\ -Force # Bare path with -Address (targets a remote system) Copy-AdsRemoteItem -Path "\TARGETDIR\ReadMe.txt" -Destination c:\tmp\ -Address CX_01234 # ADS-to-ADS copy (both paths are ADS paths) Copy-AdsRemoteItem -Path "Local:\TARGETDIR\source.txt" -Destination "Local:\BOOTDIR\copy.txt" -Force # Wildcards in source paths Copy-AdsRemoteItem -Path c:\tmp\*.xml -Destination "Local:\TARGETDIR\configs\" -Force The New-AdsRemoteItem and Remove-AdsRemoteItem cmdlets use bare ADS paths with the -Path parameter:

# Create a directory under TargetDir New-AdsRemoteItem -Path "\TARGETDIR\" -Name "MyFolder" -ItemType Directory # Create a file inside that directory New-AdsRemoteItem -Path "\TARGETDIR\MyFolder\" -Name "config.txt" -ItemType File # Remove a directory recursively Remove-AdsRemoteItem -Path "\TARGETDIR\MyFolder" -Recurse -Force TCXAEMGMT CMDLETS The following TcXaeMgmt cmdlets operate on AdsFileProvider drives:

Copy-AdsFile - Copies files from/to TwinCAT targets (upload and download) Copy-AdsRemoteItem - Copies files between ADS paths, local paths, or ADS-to-ADS New-AdsRemoteItem - Creates files and directories on remote TwinCAT targets Remove-AdsRemoteItem - Removes files and directories from TwinCAT targets STANDARD POWERSHELL CMDLETS Once a PSDrive is created, the following standard PowerShell cmdlets work transparently with AdsFileProvider drives: New-Item - Creates files or directories on the remote target Remove-Item - Deletes files or directories (supports -Recurse) Get-Item / Get-ChildItem - Browses remote directories TE1000 35 Version: 1.5.0