another output problem [solved]

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
dwngrt
Posts: 26
Joined: 07 Oct 2013 05:14
Location: The Netherlands

another output problem [solved]

#1 Post by dwngrt » 13 Oct 2013 14:29

hello dear scripters,

i has a new problem :)
i try to work this out but i can't seem to get it working

Code: Select all

(
  echo Setlocal EnableDelayedExpansion
  echo @echo off
  echo :read
  echo ^(
  echo set /p color=
  echo ^)^<color.opt
  echo ^(
  echo set /p seconds=
  echo ^)^<sec.opt
  echo echo. 
  echo %color%
  echo cls
  echo echo                                                            client: %computername%
  echo type chat.txt
  echo PING -n %secconds% 127.0.0.1 ^>nul
  echo goto read
) > reader.bat
Last edited by dwngrt on 14 Oct 2013 02:26, edited 1 time in total.

ShadowThief
Expert
Posts: 1162
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: another output problem

#2 Post by ShadowThief » 14 Oct 2013 00:14

The variables aren't printing, right?

Change %color% to %%color%%
Change %computername% to %%computername%%
Change %seconds% to %%seconds%%

dwngrt
Posts: 26
Joined: 07 Oct 2013 05:14
Location: The Netherlands

Re: another output problem

#3 Post by dwngrt » 14 Oct 2013 02:26

Thank you ShadowThief, this indeed solved my problem ^_^!

Post Reply