Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- REM OneLine.CMD - batch script for Windows NT CMD command prompt
- REM reads standard input
- REM writes all input back out as a single of text
- REM if standard input is the console (default), use CTRL+Z to end input
- REM to read a file, use input redirection: OneLine.CMD < FILE.TXT
- SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
- SET ACCUMULATOR=
- FOR /F "tokens=*" %%A IN ('more') DO SET ACCUMULATOR=!ACCUMULATOR!%%A
- ECHO %ACCUMULATOR%
Advertisement
Add Comment
Please, Sign In to add comment