hiyohiyo / CrystalDiskInfo

CrystalDiskInfo
https://github.com/hiyohiyo/CrystalDiskInfo
MIT License
1.59k stars 177 forks source link

Feature Request: More command line options #214

Open csm10495 opened 1 year ago

csm10495 commented 1 year ago

It would be amazing if there was a /CopyExit command line flag to dump the info given in /CopyExit into a more-machine-readable json format.

hiyohiyo commented 1 year ago

Thanks for the great idea. What exactly would be the format that would be useful?

csm10495 commented 1 year ago

Say we had /CopyExitJson <file path> that would drop a json file like this to the given path:

{
    "controllers" : {
        [
            {
                 "protocol" : "ATA",
                 "name": "Standard SATA AHCI Controller"
                 "disks" : [
                     {
                         "model": "<model>",
                         "serial": "<serial>",
                          ...
                         "features": [ "S.M.A.R.T.", "TRIM"],
                          ...
                         "S.M.A.R.T." : [
                              {"id" : <id>, "RawValues": <rawvalues>, "name": <name>},
                              ...
                          ]
                     }
                 ]
            },

        ]
    }
}

It would have each disk listed under the corresponding controller. Basically everything that appears in DiskInfo.txt would wind up in that format.

shadowwalkersteam commented 1 year ago

Must needed feature..

hiyohiyo commented 1 year ago

We will consider how to implement this in Ver. 10.