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
Comments