I have been using the following command to pull back files from a web server and store them on my local machine:
$client = New-Object System.Net.WebClient $client.DownloadFile('http://www.example.com/style/test.php','C:\Users\Me\Documents\style.css')
Is there a way of modifying this to pull back a whole directory? This is my first time using Powershell and the only other exposure I've had to anything like this is wget in Linux.
Any help would be greatly appreciated.