If on the command line I execute:
c:\digitemp.exe -t0 -o%C -q > res1.txt res1.txt contains correctly the numerical temperature in Celsius (say: 24.23456). But if the same command is executed inside a bat file (say: test.bat):
@ECHO OFF ECHO Hola pootol! ECHO. c:\digitemp.exe -t0 -o%C -q > res1.txt rem set pootol = < res1.txt rem set pootol ECHO Prem una tecla per sortir. pause > null res1.txt contains a wrong Celsius value that I suspect is related to the argument " -o%C ". As you can see I rem the variable assing cause pootol var is wrong assigned with the Celsius value before it is mentioned. What am I doing wrong?
remthe variable assing cause pootol var is wrong assigned with the Celsius value before it is mentioned" means. Can you try clarifying this yourself?