This entry has been published on 2013-10-08 and may be out of date.
Last Updated on 2013-10-08.
Use this Powershell script to download a file via batch script in Windows:
$client = new-object System.Net.WebClient $client.DownloadFile("http://www.xyz.net/file.txt","C:tmpfile.txt")
Then save it as meow.ps1.
If you want to run the script in Task Scheduler, use Action
powershell
with Arguments
-executionpolicy bypass -file c:yourpathmeow.ps1