I have a very simple Batch script that I'm working on
I'm considering implementing an updater with wget and version files locally and hosted on my server (yet I'm using Batch for some reason)
@echo off
for /f "tokens=* delims=" %%x in (version.txt) do set version=%%x
if "%version%" == "1.0.0" (echo yes)
the text file it's referencing contains nothing but
1.0.0
Not even a new line. Echoing %version%
gives me 1.0.0
in the console, but the if statement gets nothing.
Anyone wanna point out my error? I'm honestly clueless
Aucun commentaire:
Enregistrer un commentaire