1.

Solve : Batch chat?

Answer»

Hello! I'm making a simple batch program, that will take input, put it in a file, and display it just LIKE a chat.
Everything works fine, exept for the part with linking more computers. I'd like to save the outputfile on my server, and have the batchfiles connecting to it to display the files content.
I don't want to use the FTP command.
Please help me!

Here's what I've got so far:

Code: [Select]echo off
cls
color ce
:start
cls
echo.
echo ---------- Chatengine [1.0] -----------
echo.
echo Welcome to chatengine!
echo.
set /p A=Please pick your nickname:
echo.
echo You are now called: %A%.
echo.
echo This window will now be converted to an input box.
echo.
echo HAPPY chating!
echo.
pause
start Chatclient.bat
echo. >>chat.mfg
echo --------------------------------------->>chat.mfg
echo %A% just joined the chat>>chat.mfg
echo --------------------------------------->>chat.mfg
:write
cls
set /p X=Your message:
echo. >>chat.mfg
echo At %time%, %A% said:>>chat.mfg
echo %X%>>chat.mfg
goto write

And:

Code: [Select]echo off
color ce
:1
cls
echo.
echo ------ Chatwindow -------
type chat.mfg
start /WAIT /min smooth.bat
goto 1
smooth.bat is a two seconds countdown to refresh the window without flashing to much.THis has been read 150 TIMES, so I don't THINK I'll find any solution here, but say I'd use the chat on a LAN network instead, what would I then need to do? Quote

Hello! I'm making a simple batch program, that will take input, put it in a file, and display it just like a chat.
Now can we ask why?
Batch files were intended  to solve basic jobs common to MS-DOS about 20 years ago.  And 20 years ago doing a chat in batch was, even then, considered  poor use of resources.

If this was intended as a prank, it would be contrary to the forum rules to help you. I'd like to learn more. That's my only reason. I do understand that batch is made for simpler tasks and such, but I'd like to know how to do as many things as possible. This is no prank/joke, and it would be great to know how to make a simple batch chat. Even though it would be on a LAN network. It would teach me how to upload/write/read to/from a network.

And besides, if you say it's poor use of resources, does that mean there IS an easy way to do this? if there is, Please tell me how! Quote from: Radiation G0D on July 24, 2011, 11:26:52 AM
And besides, if you say it's poor use of resources, does that mean there IS an easy way to do this? if there is, Please tell me how!

Use a more full-featured language, Like Visual Basic, C, Python, C++, C#, F#, Perl, etc.There are many, many chat things written in Perl.
Start here:
http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Chat/

The best LEARNING experience for most people comes after looking at the example of others who have done well.Might be so, but I'm asking for help with a BATCH chat, and not Perl. Or any other programming language. (Except for VBScript )


Discussion

No Comment Found