snipt

Ctrl+h for KB shortcuts

Text only

Downloads with Progress Bar

1
2
3
4
5
6
7
8
[void] /[Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
$url = 'http://download.microsoft.com/download/4/7/1/47104ec6-410d-4492-890b-2a34900c9df2/Workshops-EN.zip'
$local = "$home\powershellworkshop.zip"
$object = New-Object Microsoft.VisualBasic.Devices.Network
$object.DownloadFile($url, $local, '', '', $true, 500, $true, 'DoNothing')


http://powershell.com/cs/blogs/tips/archive/2008/12/02/downloads-with-progress-bar.aspx
https://snipt.net/embed/65bd6e3fccd7f03a05897dda1d8360e5/
https://snipt.net/raw/65bd6e3fccd7f03a05897dda1d8360e5/
65bd6e3fccd7f03a05897dda1d8360e5
text
Text only
8
2016-09-22T21:20:22
True
False
False
/api/public/snipt/1596/
downloads-with-progress-bar
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>[void] /[Reflection.Assembly]::LoadWithPartialName(&#39;Microsoft.VisualBasic&#39;) </span><span id="L-2"><a name="L-2"></a>$url = &#39;http://download.microsoft.com/download/4/7/1/47104ec6-410d-4492-890b-2a34900c9df2/Workshops-EN.zip&#39; </span><span id="L-3"><a name="L-3"></a>$local = &quot;$home\powershellworkshop.zip&quot; </span><span id="L-4"><a name="L-4"></a>$object = New-Object Microsoft.VisualBasic.Devices.Network </span><span id="L-5"><a name="L-5"></a>$object.DownloadFile($url, $local, &#39;&#39;, &#39;&#39;, $true, 500, $true, &#39;DoNothing&#39;) </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a> </span><span id="L-8"><a name="L-8"></a>http://powershell.com/cs/blogs/tips/archive/2008/12/02/downloads-with-progress-bar.aspx </span></pre></div> </td></tr></table>
gui, internet, ps
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.