Windows PowerShell Cookbook: Difference between revisions
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
==Cookbook== | ==Cookbook== | ||
Download content from the web. This will print out the markup from the index page: | Download content from the web. This will print out the markup from the index page (which could then be piped through additional commands): | ||
<syntaxhighlight lang="powershell"> | <syntaxhighlight lang="powershell"> | ||
(new-object Net.WebClient).DownloadString("http://damienjay.com/") | (new-object Net.WebClient).DownloadString("http://damienjay.com/") | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Web Development]] | [[Category:Web Development]] | ||
Revision as of 23:32, 16 March 2012
Cookbook
Download content from the web. This will print out the markup from the index page (which could then be piped through additional commands):
(new-object Net.WebClient).DownloadString("http://damienjay.com/")