이미 FTP 디렉토리에 파일 요약을 나열하는 루프가 있습니다.powershell을 사용하여 ftp에서 여러 파일을 다운로드하는 방법
$outputBuffer | Foreach-Object {
$_ -replace 'archive/', 'ftp://ftp.test.com/outbound/archive/'
}
내 결과는 다음과 같습니다 : 나는 한 줄을 추가 할 수있는 방법을
ftp://test.com/outbound/archive/20120806_141250.txt
ftp://test.com/outbound/archive/20120806_142114.txt
ftp://test.com/outbound/archive/20120807_090149.txt
ftp://test.com/outbound/archive/20120808_090348.txt
$ outputBuffer는
/archive/20120806_141250.txt
/archive/20120806_142114.txt
/archive/20120807_090149.txt
/archive/20120808_090348.txt
내가 전체 FTP 주소와 EachObject가 들어-교체/아카이브를 포함 이 ForEach-Object 문에서 바꾸기를 한 후에 각 파일을 다운로드 할 수 있습니까?
가 정말 작동합니까? 이 새로운 V3 cmdlet에 대한 설명은 "웹 서비스에 HTTP 및 HTTPS 요청을 보냅니다." –