TcXaeMgmt Version 7.X | New-AdsRemoteItem INPUTS OUTPUTS NOTES 6.15 New-AdsRemoteItem | New-AdsRemoteItem SYNOPSIS Creates a new file or directory on a TwinCAT target system. SYNTAX NetId (Default) New-AdsRemoteItem [-Path] [-Name] [-ItemType] [-NetId ] [-WhatIf] [-Confirm] [ ] Route New-AdsRemoteItem [-Path] [-Name] [-ItemType] -InputObject [-WhatIf] [-Confirm] [ ] AddressStr New-AdsRemoteItem [-Path] [-Name] [-ItemType] -Address [-WhatIf] [-Confirm] [ ] SessionId New-AdsRemoteItem [-Path] [-Name] [-ItemType] -SessionId [-WhatIf] [-Confirm] [ ] DESCRIPTION The New-AdsRemoteItem cmdlet creates an empty file or a directory on a remote TwinCAT target.
The Path parameter specifies the directory (including the StandardDirectory prefix, e.g., TARGETDIRsubdir), and the Name parameter specifies the file or directory name to create. EXAMPLES Example 1 New-AdsRemoteItem -Path \TARGETDIR\ -Name MyFolder -ItemType Directory Creates a directory 'MyFolder' in the TargetDir on the local TwinCAT system. Example 2 New-AdsRemoteItem -Path \TARGETDIR\ -Name test.txt -ItemType File -NetId "5.80.192.47.1.1" Creates an empty file 'test.txt' in the TargetDir on a remote TwinCAT system. TE1000 84 Version: 1.5.0