My syntax is not correct
Posted: 08 Mar 2023 12:49
Something is wrong with my syntax.
I have some code:
The output in the txt file shows:
What I expect it to show is:
What could I be doing wrong?
I have some code:
Code: Select all
systeminfo | findstr /B "OS Name:" >>"%~dpn0.txt"
systeminfo | findstr /B "OS Version:" >>"%~dpn0.txt"
Code: Select all
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19045 N/A Build 19045
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19045 N/A Build 19045
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Code: Select all
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19045 N/A Build 19045