- To store the system information in a file
Output may defer according to system so, write the code and execute/run your batch file
@echo off
systeminfo.exe > F:\fileName.txt
pause
Systeminfo will be saved inside file path "F:\fileName.txt", if file is not found it will generate it Remember! If file found it will overwrite the file. So, be careful about what you typeProgram
After writing the code, Double-click your batch file, you will store the information inside specified file path
:: cmd to store system info
systeminfo.exe > [File_Path_Name]
pause
is used to hold the screen to show the output
You can store any other command details inside a file
:: Syntax to store any CMD output
YOUR_CMD > [File_Path_Name]
Concept