PowerShell FTP download files and subfolders
问题 I like to write a PowerShell script to download all files and subfolders from my FTP server. I found a script to download all files from one specific folder, but I also like to download the subfolders and their files. #FTP Server Information - SET VARIABLES $ftp = \"ftp://ftp.abc.ch/\" $user = \'abc\' $pass = \'abc\' $folder = \'/\' $target = \"C:\\LocalData\\Powershell\\\" #SET CREDENTIALS $credentials = new-object System.Net.NetworkCredential($user, $pass) function Get-FtpDir ($url,