The answer above is good if you want to print out more than one command, but if you only one or two commands the type: "drive letter:\diskpart help > help.txt
the file is in drive letter, ie c: