Issue with batch file encoding
I have a batch file script I am trying to create to obtain some pretty basic info on the computers at my job site. However, I am having severe issues with encoding. WMIC and IPCONFIG put out different encodings, and as such, it is causing me to obtain garbled results when the commands execute. Thus far, I have: @echo off if exist "C:\%computername%-info.txt" ( echo Your computer information is already published! Skipping ) else ( ipconfig /all > "C:\%computername%-info.txt" wmic bios get serialnumber >> "C:\%computername%-info.txt" ) pause The results are...weird. I don't know what the encoded