I ran the following script in my Windows 10 command prompt
msinfo32 /report mysystem.txt, which saves all the system data of the machine in a single text file.
However, when I ran strings on the output text file, I wasn't getting any output.
findstr /c:"System Name" mysystem.txt should display the system name, but it didn't return anything. I opened the file, and all the text was there, but findstr was not recognizing it.
Eventually, I changed the file extension to .csv, opened it in excel, and saved it as a 'Text(MS-DOS).txt' file. Don't ask why I thought to do this, I was just grasping at straws. I was then able to run strings on the file saved as a 'Text(MS-DOS).txt' file with success.
Can anyone explain this behavior? I thought a text file was a text file, as long as it's plain text. How can I get the command line to direct output in the Text(MS-DOS).txt format. I couldn't find options for this in findstr and google searched yield nothing.
Thanks in advance for any assistance.