Jump to content

If you use Powershell, you can use

( new-object System.Net.WebClient ).DownloadFile("http://some/url/somewhere", "c:\\some-place\\somewhere\\local\\")

otherwise, you'll be stuck grabbing wget for windows and calling that; Word to the wise, however: Windows builds of wget are often against really old versions of OpenSSL and are vulnerable to the various attacks that run through the news.

Link to post
Share on other sites

23 minutes ago, indrora said:

If you use Powershell, you can use


( new-object System.Net.WebClient ).DownloadFile("http://some/url/somewhere", "c:\\some-place\\somewhere\\local\\")

otherwise, you'll be stuck grabbing wget for windows and calling that; Word to the wise, however: Windows builds of wget are often against really old versions of OpenSSL and are vulnerable to the various attacks that run through the news.

Ok Thanks. +

Link to post
Share on other sites

19 minutes ago, Danielh90 said:

Ok Thanks. +

 

42 minutes ago, indrora said:

If you use Powershell, you can use


( new-object System.Net.WebClient ).DownloadFile("http://some/url/somewhere", "c:\\some-place\\somewhere\\local\\")

otherwise, you'll be stuck grabbing wget for windows and calling that; Word to the wise, however: Windows builds of wget are often against really old versions of OpenSSL and are vulnerable to the various attacks that run through the news.

Its giving me issues..  I removed my link because I would like to keep that private :)

Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request."
At C:\Users\Daniel\Documents\GSB\run.ps1:1 char:49
+ ( new-object System.Net.WebClient ).DownloadFile <<<< ("Hidden", "c:\\servers\\minecraft")
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×