Search code examples
batch-filedos

How to read variables from .SAV files in batch


I have set a variable in a .SAV file, is there anyway to make a batch file to read that variable?

The Varible I set in there was, set d=200 So in a batch file can I read it using %'s ?

like if %d%==200 goto Example ?


Solution

  • echo 200>file
    set /p var=<file
    echo %var%