Clarity

  • 1.  How to Restore the .keystore File After Renaming it?

    Broadcom Employee
    Posted May 06, 2015 06:47 AM

    Check out this Flipboard article on how to restore the .keystore file that is renamed.

     

    http://cookbooks.ca.com/cacppm/2015/05/05/how-to-restore-the-keystore-file-after-renaming-it/



  • 2.  Re: How to Restore the .keystore File After Renaming it?

    Posted May 06, 2015 09:51 AM

    Thanks for sharing this, Sunder

     

    NJ



  • 3.  Re: How to Restore the .keystore File After Renaming it?

    Posted May 06, 2015 06:31 PM

    You can do this without the command prompt.

     

    In Explorer, name the file '.keystore.' (put the period at both ends):

     

     

    Then when you press Enter (accepting any 'extension changed' dialog that pops up), you get this:

     

     

    And at the command prompt, it also shows correctly (my file was a test file for demonstration purposes so the 0 bytes is correct):

     

    C:\Users\darni01\test_dots>dir
    Volume in drive C has no label.
    Volume Serial Number is E28D-6B14

    Directory of C:\Users\darni01\test_dots

    06/05/2015  17:28    <DIR>          .
    06/05/2015  17:28    <DIR>          ..
    06/05/2015  17:28                 0 .keystore
                   1 File(s)              0 bytes
                   2 Dir(s)   4,602,646,528 bytes free

    C:\Users\darni01\test_dots>

     

    Hope that helps.



  • 4.  Re: How to Restore the .keystore File After Renaming it?

    Broadcom Employee
    Posted May 07, 2015 12:53 AM

    Thank you Nick.



  • 5.  Re: How to Restore the .keystore File After Renaming it?

    Posted May 07, 2015 04:54 PM

    nick_darlington, thanks for the trick.

    In some cases the users do not have the access to the command prompt, so this allows to do it should they have all the other rights needed to work with keystores.

    Normally if you try to remove the file name in Windows explorer

    1.JPG

    you would get an error

    2.JPG

    The period at the end is now the one that Windows thinks that is the one between the name and extension and Windows thinks you are removing the extension

    Which is perfectly legal.

    4.JPG

    If there is no extension Windows does not bother to display the period either as you can see with the New text file

    5.JPG

    DOS does not handle files without names too well either. So you cannot use copy a backup file to become .keystore.

    Rename works fine though.

    6.JPG

     

    7.JPG