-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path131_sysinformation_shell.txt
37 lines (32 loc) · 1.28 KB
/
131_sysinformation_shell.txt
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
{****************************************************************
*
* Project : System Information Series
* Unit Name: 1314_sysinformation_shell, loc's = 34
* Purpose : Demonstrates the functions of external shell program
* History : system demo for mX3 beta - mX3ß #host:MAXBOX7
****************************************************************}
program System_Information;
function MessageBeep(para: integer): byte;
external '[email protected] stdcall';
var
mytimestamp: TDateTime;
osType: TIdWin32Type;
int1, int2, int3: extended;
begin
writeln('machine name is: '+getHostName)
writeln('user name is: '+getUserName)
osType:= Win32Type;
writeln(IntToStr(ord(osType))+' is type of Operating System');
mytimestamp:= GetFileCreationTime(exepath+'maxbox3_0.exe')
writeln(DateTimeToStr(mytimestamp)+' Creation Date of maXbox3')
//ExecuteShell('cmd','/k systeminfo > systeminfo_dell.txt')
ExecuteShell('cmd','/c systeminfo > systeminfo_machine.txt')
SearchAndOpenFile('systeminfo_machine.txt')
// BigInt Test
int1:= fact(10)
int2:= fact(15)
int3:= int1 * int2
writeln('BigIntTest: '+floatToStr(int3))
end.
*******************************************************
There is no place like 127.0.0.1