Cmdlets for FTP

Build 24.0.9060

Update-FTP Cmdlet

Parameters   Output Objects  

Updates FTP data.

Syntax

Update-FTP [parameters]

Remarks

The Update-FTP cmdlet allows you to use a syntax similar to SQL UPDATE statements to update FTP data.

$conn = Connect-FTP -RemoteHost 'MyFTPServer'
Update-FTP -Connection $conn -Table "Notes" -Columns @("Filename") -Values @("Jon Doe") -Id "1"
The Where parameter can also be used to specify the primary key of the table:
Update-FTP -Connection $conn -Table "Notes" -Columns @("Filename") -Values @("Jon Doe") -Where "Id = '1'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-FTP -Connection $conn -Table Notes -Where "FilePath = '/documents/doc.txt'" | Update-FTP -Columns @("FilePath") -Values @("/documents/doc.txt 2")

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060