You are not logged in.
Pages: 1
is it possible to use the command
Echo welcome && type name.txt
but force welcome and the content of name.txt to be on the same line?
Thanks
Offline
(break| set /p= Welcome ) &echo something else
Offline
If this is your thread http://www.dostips.com/forum/viewtopic.php?f=3&t=6679
Then perhaps you just want this:
@echo off
cls
set /p "name=Name: "
echo Welcome %name%
pause
If there are likely to be poison characters in the name then you can use this:
@echo off
cls
set /p "name=Name: "
for %%a in ("%name%") do echo Welcome %%~a
pause
Offline
Thank you foxdrive and npocmaka
Offline
Pages: 1