This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2bf34a
commit d2dba4f
Showing
5 changed files
with
96 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/bin/node_modules | ||
/bin/node.exe | ||
release.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
7-Zip Command line version | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
License for use and distribution | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
7-Zip Copyright (C) 1999-2010 Igor Pavlov. | ||
|
||
7za.exe is distributed under the GNU LGPL license | ||
|
||
Notes: | ||
You can use 7-Zip on any computer, including a computer in a commercial | ||
organization. You don't need to register or pay for 7-Zip. | ||
|
||
|
||
GNU LGPL information | ||
-------------------- | ||
|
||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
|
||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
|
||
You can receive a copy of the GNU Lesser General Public License from | ||
http://www.gnu.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// httpget.js: download a file (Windows Script Host) | ||
// usage: cscript httpget.js <url> <file> | ||
// https://gist.github.com/duncansmart/5821523 | ||
|
||
(function() { | ||
if (WScript.Arguments.Length != 2) { | ||
WScript.Echo("Usage: httpget.js <url> <file>") | ||
WScript.Quit(1) | ||
} | ||
|
||
var url = WScript.Arguments(0) | ||
var filepath = WScript.Arguments(1) | ||
|
||
var xhr = new ActiveXObject("MSXML2.XMLHTTP") | ||
|
||
xhr.open("GET", url, false) | ||
xhr.send() | ||
|
||
if (xhr.Status == 200) { | ||
|
||
var fso = new ActiveXObject("Scripting.FileSystemObject") | ||
if (fso.FileExists(filepath)) | ||
fso.DeleteFile(filepath) | ||
|
||
var stream = new ActiveXObject("ADODB.Stream") | ||
stream.Open() | ||
stream.Type = 1 //adTypeBinary | ||
stream.Write(xhr.ResponseBody) | ||
stream.Position = 0 | ||
stream.SaveToFile(filepath) | ||
stream.Close() | ||
} | ||
else { | ||
WScript.Echo("Error: HTTP " + xhr.status + " "+ xhr.statusText) | ||
} | ||
})(); |