New blog location
New blog location
@echo OFF
rem Has about 1024 character buffer limit
rem See: https://stackoverflow.com/questions/3068929/how-to-read-file-contents-into-a-variable-in-a-batch-file
echo Hello File > file.txt
set /p ReadBack=<file.txt
echo Text is %Readback%
Outputs: Text is: Hello File
Comments
Post a Comment