You just have to copy the following code and past into Notepad, then save with .cmd extension and execute it.

systeminfo > Z_Systeminfo.txt