any time you can face problems in your computer that requires farmating your computer , but sometimes before you format it you think about your files and how to install it again so the solution is saving a list of your files to remember all the programs and softwares already install it on your computer to reinstall it after finishing reparing the computer .
and for this post i will give you the 2 ways To Save A List Of Your Files Before You Format your Computer
Code for CMD :
WMIC
/output:C:\installed.txt product get name,version