![windows](https://files.geektime.co.il/wp-content/uploads/2021/06/Hero-Bloom-Logo-1000x563-1624550068.jpg)
Lets say we have a file test.txt, whose contents we want to read into the TEST variable.
Use this syntax.
SET /P TEST=<test.txt
Notice! only the first line will be read.
Tags
command line
Lets say we have a file test.txt, whose contents we want to read into the TEST variable.
Use this syntax.
SET /P TEST=<test.txt
Notice! only the first line will be read.