Saturday, 15 September 2012

Trouble with spaces in batch -



Trouble with spaces in batch -

i have question. have

set /p displaytext=text displayed: echo "%displaytext%" pause

and if input spaces displays wrote in quotes. how rid of them?. help! in advanced. if write in caps with/without spaces closes. want display type no madder , without quotes.

try below. remove " "%displaytext%"

@echo off set /p displaytext=text displayed: echo %displaytext% pause

for reference, see output below test run

d:\>test.bat text displayed:hi there user3671588 hi there user3671588 press key go on . . .

batch-file

No comments:

Post a Comment