Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello guys.
I am having trouble with my script.
I need to get all lines lines to show from a text file.
What I have is a chat script, that you can chat to people that use the same server as you (mainly for schools and offices with shared server)So there is a write script and a receive script and I need all the lines to show up in the receive script.
This will automaticly create a log too.
------------------------
WRITE SCRIPT
@ echo off
set /p n=Your Name:
:1
echo Max's Chat 0.1
set /p c=Message:
echo %n% says: %C% > temp.txt
cls
goto 1------------------
RECEIVE SCRIPT
@ echo off
:1
set /p var= <temp.txt
echo %var%
ping localhost -n 3 >nul
cls
goto 1
-------------------------As I said, I need all the lines or multiple lines to show up in the receive script.
Thanks in advice
EDIT:
Also, if someone comes up with a way that the write and receive script can be combined, so only one window is needed, I would be thankful too!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |