-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStartup.js
38 lines (34 loc) · 950 Bytes
/
Startup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
var oTerminal = new ActiveXObject("Terminal.Controller");
oTerminal.SetPrinter(function(sControlSequence) {
WScript.StdOut.Write(sControlSequence);
});
var sText = "Microsoft Windows 2000";
oTerminal.ClearScreen();
oTerminal.MoveCursorTo(
Math.floor(oTerminal.RowLength / 2),
Math.floor((oTerminal.ColumnLength - sText.length) / 2)
);
WScript.Echo(sText)
oTerminal.MoveCursorToRow(oTerminal.RowLength);
WScript.StdOut.Write(
(function (f) {
return f(f);
})(function (repeat) {
return function(lngCount) {
return lngCount == 0
? ""
: "=" + repeat(repeat)(lngCount - 1);
};
})(oTerminal.ColumnLength)
);
oTerminal.MoveCursorToRow(oTerminal.RowLength);
(function (f) {
return f(f);
})(function (repeat) {
return function(lngCount) {
WScript.StdOut.Write(">");
WScript.Sleep(10);
lngCount != 1 ? repeat(repeat)(lngCount - 1) : 0;
};
})(oTerminal.ColumnLength);
WScript.Sleep(3000);