Home > Back-end >  How to use c, c acquisition system creation date
How to use c, c acquisition system creation date

Time:09-19

I need to write a function to get the system installation date, strives for the great god gave a message of all stripes, tried to disk c Windows under the creation date, but out of a problem, so I need another solution

CodePudding user response:

Registry key HKLM \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \

InstallDate Unix timestamp
InstallTime OLE timestamp

CodePudding user response:

With the DOS command can be obtained, using the ShellExecute you can
Systeminfo & gt; A.t xt

Get a.t xt

Host name: DRGRAPH - W530
The OS name: Microsoft Windows 7 ultimate
OS version: 6.1.7601 Build 7601 Service Pack 1
OS maker: Microsoft Corporation
OS configuration: independent workstation
OS component types: Multiprocessor Free
To register all of the people: Microsoft user
Registration organization: Microsoft China
Product ID: 00426 - OEM - 8992662-00400
date of initial installation: 2015/1/21, 12:45:58
System start time: 2017/12/12, 21:28:49
System manufacturer: LENOVO
System models: 2447 ng8
System type: x64 - -based PC
Processor: installed one processor,
[01] : Intel64 Family 6 58 Stepping Model 9 GenuineIntel ~ 2601 Mhz
The BIOS version: LENOVO G5ET92WW (2.52), 2013/2/27
Windows directory: C: \ Windows
The system directory: C: \ Windows \ system32
Boot Device: \ Device \ HarddiskVolume3
System locale: useful - cn; Chinese (Chinese)
Input locale: useful - cn; Chinese (Chinese)
Time zone: (UTC + 08:00) Beijing, chongqing, Hong Kong special administrative region, urumqi
The total physical memory: 7741 MB
The available physical memory: 3520 MB
Virtual memory: maximum: 15479 MB
Virtual memory: available: 10852 MB
Virtual memory: use: 4627 MB
Page file location: C: \ pagefile sys
Domain: DRGRAPH
The login server: \ \ DRGRAPH - W530
.

CodePudding user response:

Systeminfo this will be a little delay, there are other solutions

CodePudding user response:

On the second floor, as you can on the registry
  • Related