Multi-OEM/Retail Project {MRP} - Mk3

Discussion in 'MDL Projects and Applications' started by mxman2k, Oct 15, 2016.

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,681
    103,548
    450
  2. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    870
    1,470
    30
  3. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    870
    1,470
    30
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,681
    103,548
    450
    Notice this?
    Code:
    CPU Name                   - Intel{R} Core{TM} i3 CPU       M 380  @ 2.53GHz {x1}
    The spacings between CPU and M 380?
     
  5. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,072
    210
    that's how the information is returned i only check for ( ) and convert to { } to prevent a crash of Echo command.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    870
    1,470
    30
  7. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    870
    1,470
    30
  8. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    870
    1,470
    30
  9. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    870
    1,470
    30
  10. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    870
    1,470
    30
  11. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,072
    210
    When i decided to add the tweaks and 'features' i wasn't sure how people would react or even if they would be used much.

    It seems quite a lot of the options are used. :)

    I research to see what tweaks can be safely used and pick the best ones to add as it can be a challenge to fit everything in and to make sure one tweak not affect another, as the phone + advert block did, but with a bit of thought that was sorted.

    I am taking a bit of a break. The QT will be updated shortly as testing the 'extra spaces in some results' removal routine like the CPU name etc. Also a revamped .Net 4.7.x routine - which is in the latest MRP not that you will see it. :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. MMIKEE

    MMIKEE MDL Senior Member

    Oct 6, 2012
    380
    361
    10
    I seen it and I LIKE it!... :p :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. mad_max

    mad_max MDL Junior Member

    Mar 31, 2014
    77
    40
    0
    Hmmm about extra spaces... I think you should check Drive label option too because every time I set it up after Windows installation there is always one space at the end of the partition/disc name.
     
  14. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,072
    210
    The drive label if set should not contain any extra spaces :g:

    I know MRP does not add any at the end.

    Well it shouldn't is using the auto rename or if no name is set - unless Windows adds it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,072
    210
    Have rechecked the code that does the drive label and i have added a little tweak to remove any leading and trailing spaces.

    Hopefully that should fix that. :)

    so ' my drive label ' would become 'my drive label' the ' ' are just to show the spaces in this example.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,324
    21,072
    210
    #3280 mxman2k, Aug 6, 2018
    Last edited: Aug 6, 2018
    (OP)
    Better explanation:

    Code:
    
    Original: [   Extra     spaces    at begining,   within    and at the    end removal      ]
    
    FixedVer: [Extra spaces at begining, within and at the end removal]
    
    
    As you can see it removes the leading, trailing and most within! ;)

    Just enhanced it to do the 'within' bit, sometimes it can get it a bit wrong but 98% it works.

    Code:
    Original: [   Extra     spaces    at begining   ,    within    and at the    end removal      ]
    
    FixedVer: [Extra spaces at begining , within and at the end removal]
    The area it gets a bit wrong is where the , (comma) has spaces around it. Cosmetic and almost impossible to sort that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...