uh?
imo this is much simpler
set /p texte=< file.txt
echo %texte%
More Related Contents:
- Why is no string output with ‘echo %var%’ after using ‘set var = text’ command in cmd? [duplicate]
- What are the ERRORLEVEL values set by internal cmd.exe commands?
- How to run multiple .BAT files within a .BAT file
- Assign output of a program to a variable using a MS batch file
- Displaying Windows command prompt output and redirecting it to a file
- Assign command output to variable in batch file
- Can I mask an input text in a bat file?
- Which cmd.exe internal commands clear the ERRORLEVEL to 0 upon success?
- Why doesn’t this FINDSTR example with multiple literal search strings find a match?
- What is the difference between % and %% in a cmd file?
- How to read and print contents of text file line by line?
- Logical operators (“and”, “or”) in DOS batch
- using batch echo with special characters
- What does single-quoting do in Windows batch files?
- How to set a variable inside a loop for /F
- What does “&&” do in this batch file?
- Batch File: Typewriter Effect
- How can I use a .bat file to remove specific tokens from the PATH environment variable?
- Running Windows batch file commands asynchronously
- How to run multiple DOS commands in parallel?
- Why are Danish characters not displayed as in text editor on executing batch file?
- CMD.EXE batch script to display last 10 lines from a txt file
- How to automatically close cmd window after batch file execution?
- How can I escape an exclamation mark ! in cmd scripts?
- Batch – Converting variable to uppercase
- How does “FOR” work in cmd batch file?
- Batch file for PuTTY/PSFTP file transfer automation
- Why is escaping exclamation marks not necessary in parameter of `for /F` or `for /R`?
- How do I create a batch file timer to execute / call another batch throughout the day
- How can I move all the files from one folder to another using the command line?