![]() |
|
[Shell] Downloading Multi-files from web using powershell and batch by Hackoo - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Shell] Downloading Multi-files from web using powershell and batch by Hackoo (/showthread.php?tid=5699817) |
Downloading Multi-files from web using powershell and batch by Hackoo - Hackoo - Aug 21, 2017 Hi ✌ I reply here to a guy on superuser.com site : Batch Script using Powershell to download from the web Here is an example that i made to download some batch codes from a file that can be created if not exist, and of course you can add what you want of urls in this file ! I added a function in powershell to show you a balloon Tip while downloading those files. So just give a try and tell me the result on your side ! Multi_Downloading_Files.bat Multi_Downloading_Files.bat (Click to View) * - Baldman - Aug 21, 2017 How exactly does this work ? Do i change the URL'S to download from another source. Can i only download the url's ? * - Hackoo - Aug 21, 2017 (Aug 21, 2017 07:44 AM)Baldman Wrote: How exactly does this work ? Do i change the URL'S to download from another source. Can i only download the url's ?Yep 😉 of course you can ! Firstly, the script check for the text file named Urls.txt if exist in same location where this batch is executed and read from it the urls line by line to download them ! So, if you want to change those urls to yours, just change it from the text file Urls.txt not from the batch, i mean you can create a text file and name it to Urls.txt and put what you want as urls on this file line by line of course and let the script do its job 👍 * - HFDone - Aug 21, 2017 LoadWithPartialName been deprecated use Add-Type * - Travelers - Aug 23, 2017 Nice use of .dispose at the end 😏 Looks like a nifty little script you have there. I can see this being used in conjunction with other scripts to create some kind of background downloader. Neat. * - vbainf1000 - Aug 29, 2017 This looks great, please check your PM! * - DUCKBOY - Sep 12, 2017 Very interesting, thanks for sharing! RE: Downloading Multi-files from web using powershell and batch by Hackoo - macfsn - Nov 25, 2017 and this could be done by a one line wget/curl command in terminal |