Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
var notes = 'NOTES.TXT';
|
||||
|
||||
var args = WScript.Arguments;
|
||||
var fso = new ActiveXObject("Scripting.FileSystemObject");
|
||||
var ForReading = 1, ForWriting = 2, ForAppending = 8;
|
||||
|
||||
if (args.length == 0) {
|
||||
if (fso.FileExists(notes)) {
|
||||
var f = fso.OpenTextFile(notes, ForReading);
|
||||
WScript.Echo(f.ReadAll());
|
||||
f.Close();
|
||||
}
|
||||
}
|
||||
else {
|
||||
var f = fso.OpenTextFile(notes, ForAppending, true);
|
||||
var d = new Date();
|
||||
f.WriteLine(d.toLocaleString());
|
||||
f.Write("\t");
|
||||
// note that WScript.Arguments is not an array, it is a "collection"
|
||||
// it does not have a join() method.
|
||||
for (var i = 0; i < args.length; i++) {
|
||||
f.Write(args(i) + " ");
|
||||
}
|
||||
f.WriteLine();
|
||||
f.Close();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue