Using set
and the /p
parameter you can echo without newline:
C:\> echo Hello World
Hello World
C:\> echo|set /p="Hello World"
Hello World
C:\>
More Related Contents:
- Variables are not behaving as expected
- Single line with multiple commands using Windows batch file
- Example of delayed expansion in batch file
- Batch file to delete files older than N days
- Batch command date and time in file name
- How do I measure execution time of a command on the Windows command line?
- How can I echo a newline in a batch file?
- Windows Batch Variables Won’t Set
- ‘Pretty print’ windows %PATH% variable – how to split on ‘;’ in CMD shell
- Where is “START” searching for executables?
- How to verify if a file exists in a batch file?
- Windows command to convert Unix line endings?
- windows batch SET inside IF not working
- Stop and Start a service via batch or cmd file?
- Batch files: List all files in a directory with relative paths
- How to run a PowerShell script within a Windows batch file
- Windows batch script to parse CSV file and output a text file
- Using parameters in batch files at Windows command line
- Convert a small PS script into a long line in a .BATch file
- Counting in a FOR loop using Windows Batch script
- What is the easiest way to reset ERRORLEVEL to zero?
- How to count no of lines in text file and store the value into a variable using batch script?
- How to test if a path is a file or directory in Windows batch file?
- Split string with string as delimiter
- How to change Screen buffer size in Windows Command Prompt from batch script
- Delete all files and folders in a directory
- What would be the Windows batch equivalent for HTML’s input type=”password”?
- windows cmd: problems with for /f with a quoted command with quoted parameters
- Using echo y as an automated response to a pcp hostkey prompt
- Batch file to upload .txt to FTP