KINGx - Das inoffizielle PlayStation Forum & News Portal
batch chat frage - Druckversion

+- KINGx - Das inoffizielle PlayStation Forum & News Portal (http://www.kingx.de/forum)
+-- Forum:    Sonstiges (/forumdisplay.php?fid=9)
+--- Forum: PC & Mac (/forumdisplay.php?fid=19)
+--- Thema: batch chat frage (/showthread.php?tid=55016)


batch chat frage - 2fersen - 25.11.2011 17:32

hallo leute,
ich habe einen batch chat im internet gefunden und würde ihn jetzt gerne zum laufen bringen am anfang wird eine server.bat datei verlangt was muss ich dort reinschreiben in die datei?

und die zweite frage es wird noch eine ip adresse verlangt welche muss ich da reinschreiben damit freunde auch drauf chatten können die ip vom pc oder vom router?

Der Text:

@echo off

echo [1] Server 1
echo [2] Server 2
echo.

set /p choice=Enter Server:
if %choice% == 1 goto 1
if %choice% == 2 goto 2
if not %choice% == 1 if not %choice% == 2 goto Menue


:1
start server.bat
echo %username% has joined the server >> \\192.168.1.34\Tausch\Chat\Output.txt & time /t >> \\192.168.1.34\Tausch\Chat\Output.txt
:11
cls
color 0A & echo Online

echo Logged in as %username%
echo /help for more informations
set /p input=:


echo %username%: %input% >> \\192.168.1.34\Tausch\Chat\Output.txt
if "%input%"== "/server" goto server & ping 127.0.0.1 -n 5 >nul
if "%input%"== "/help" goto help
if "%input%"== "/time" time /t >> \\192.168.1.34\Tausch\Chat\Output.txt & time /t
if "%input%"== "/cls" goto pw_cls1

goto 11

:server
if not exist server.bat echo Server 1 offline & goto 99
echo.
echo Server 1 online
ping 127.0.0.1 -n 2 >nul

:99

if not exist server2.bat echo Server 2 offline & goto 98
echo.
echo Server 2 online
ping 127.0.0.1 -n 5 >nul

:98
goto 11

:2
start server2.bat
echo %username% has joined the server >> \\192.168.1.34\Tausch\Chat\Output2.txt & time /t >> \\192.168.1.34\Tausch\Chat\Output2.txt
:22
cls
color 0C & echo Online

echo Logged in as %username%
echo /help for more informations
set /p input=:

echo %username%: %input% >> \\192.168.1.34\Tausch\Chat\Output2.txt
if "%input%"== "/server" goto server1 & ping 127.0.0.1 -n 5 >nul
if "%input%"== "/help" goto help2
if "%input%"== "/time" time /t >> \\192.168.1.34\Tausch\Chat\Output2.txt & time /t
if "%input%"== "/cls" goto pw_cls2

goto 22


:server1
if not exist server.bat echo Server 1 offline & goto 99
echo.
echo Server 1 online
ping 127.0.0.1 -n 2 >nul

:99

if not exist server2.bat echo Server 2 offline & goto 98
echo.
echo Server 2 online
ping 127.0.0.1 -n 5 >nul

:98
goto 22

Tonguew_cls1
set /p User=Admin:


if not "%User%"=="dein Beliebiger Admin Name" goto exit

:100

set /p Password=Password:
if not "%Password%"=="dein Beliebiges Passwort" goto exit

del Output.txt
echo %User%: Server Restart at >>Output.txt & time /t >>Output.txt
goto :11


Tonguew_cls2
set /p User=Admin:


if not "%User%"=="dein Beliebiger Admin Name" goto exit

:101

set /p Password=Password:
if not "%Password%"=="dein Beliebiges Passwort" goto exit

del Output2.txt
echo %User%: Server Restart at >>Output2.txt & time /t >>Output2.txt
goto :22

:help2

echo.
echo /time
echo /cls (only Admins)
echo /help
echo /server
echo Any problems? Contact the admin: dome1994@googlemail.com
echo.

ping 127.0.0.1 -n 10 >nul
goto 22

:help

echo.
echo /time
echo /cls (only Admins)
echo /help
echo /server
echo Any problems? Contact the admin: dome1994@googlemail.com
echo.

ping 127.0.0.1 -n 10 >nul
goto 11

:exit
cls
color 0E
echo Login fail
echo Wait 5 Seconds
ping 127.0.0.1 -n 5 >nul
color 0F
cls
goto 10
]

@echo off

cls
title Batch Chat v1.0 - Locales Chat System by Dome



:10
color 0F

cls
echo Batch Chat v1.0
echo Time:
time /t
echo.
set /p username=Nickname:
if "%username%"=="/time" goto time
if "%username%"=="dein Beliebiger Admin Name" goto pw
if "%username%"=="Admin" goto pw


if not "%username%"=="dein Beliebiger Admin Name" goto Menue
if not "%username%"=="dein Beliebiger Admin Name 2" goto Menue

Tonguew
set /p Passwort=Password:
if not "%Passwort%"=="dein Beliebiges Passwort" goto exit

goto Menue

:time
cls
color 03
time /t
ping 127.0.0.1 -n 5 >nul
cls
goto 10

:Menue
cls
echo.
echo [1] Server 1
echo [2] Server 2
echo.

set /p choice=Enter Server:
if %choice% == 1 goto 1
if %choice% == 2 goto 2
if not %choice% == 1 if not %choice% == 2 goto Menue


:1
start server.bat
echo %username% has joined the server >> \\192.168.1.34\Tausch\Chat\Output.txt & time /t >> \\192.168.1.34\Tausch\Chat\Output.txt
:11
cls
color 0A & echo Online

echo Logged in as %username%
echo /help for more informations
set /p input=:


echo %username%: %input% >> \\192.168.1.34\Tausch\Chat\Output.txt
if "%input%"== "/server" goto server & ping 127.0.0.1 -n 5 >nul
if "%input%"== "/help" goto help
if "%input%"== "/time" time /t >> \\192.168.1.34\Tausch\Chat\Output.txt & time /t
if "%input%"== "/cls" goto pw_cls1

goto 11

:server
if not exist server.bat echo Server 1 offline & goto 99
echo.
echo Server 1 online
ping 127.0.0.1 -n 2 >nul

:99

if not exist server2.bat echo Server 2 offline & goto 98
echo.
echo Server 2 online
ping 127.0.0.1 -n 5 >nul

:98
goto 11

:2
start server2.bat
echo %username% has joined the server >> \\192.168.1.34\Tausch\Chat\Output2.txt & time /t >> \\192.168.1.34\Tausch\Chat\Output2.txt
:22
cls
color 0C & echo Online

echo Logged in as %username%
echo /help for more informations
set /p input=:

echo %username%: %input% >> \\192.168.1.34\Tausch\Chat\Output2.txt
if "%input%"== "/server" goto server1 & ping 127.0.0.1 -n 5 >nul
if "%input%"== "/help" goto help2
if "%input%"== "/time" time /t >> \\192.168.1.34\Tausch\Chat\Output2.txt & time /t
if "%input%"== "/cls" goto pw_cls2

goto 22




:server1
if not exist server.bat echo Server 1 offline & goto 99
echo.
echo Server 1 online
ping 127.0.0.1 -n 2 >nul

:99

if not exist server2.bat echo Server 2 offline & goto 98
echo.
echo Server 2 online
ping 127.0.0.1 -n 5 >nul

:98
goto 22



Tonguew_cls1
set /p User=Admin:


if not "%User%"=="dein Beliebiger Admin Name" goto exit

:100

set /p Password=Password:
if not "%Password%"=="dein Beliebiges Passwort" goto exit

del Output.txt
echo %User%: Server Restart at >>Output.txt & time /t >>Output.txt
goto :11


Tonguew_cls2
set /p User=Admin:


if not "%User%"=="dein Beliebiger Admin Name" goto exit

:101

set /p Password=Password:
if not "%Password%"=="dein Beliebiges Passwort" goto exit

del Output2.txt
echo %User%: Server Restart at >>Output2.txt & time /t >>Output2.txt
goto :22

:help2

echo.
echo /time
echo /cls (only Admins)
echo /help
echo /server
echo Any problems? Contact the admin: dome1994@googlemail.com
echo.

ping 127.0.0.1 -n 10 >nul
goto 22

:help

echo.
echo /time
echo /cls (only Admins)
echo /help
echo /server
echo Any problems? Contact the admin: dome1994@googlemail.com
echo.

ping 127.0.0.1 -n 10 >nul
goto 11





:exit
cls
color 0E
echo Login fail
echo Wait 5 Seconds
ping 127.0.0.1 -n 5 >nul
color 0F
cls
goto 10



freue mich auf antworten


RE: batch chat frage - Jonny0815 - 25.11.2011 17:56

ich glaub da wärst du wo anders besser geholfen ...


RE: batch chat frage - Kiba113 - 25.11.2011 18:02

ähmm???
was soll dieser ganze text wenn ich fragen darf?


RE: batch chat frage - H@cKzZ - 25.11.2011 18:53

wenn ich auch mal was sagen darf ^^
also eine chat batch datei besteht aus einer Connection datei und server datei die server datei ist dafür da um einen server zu erstelen und darüber zu schreiben google einfach mal chat erstellen cmd dan msstest du was finden wen nicht können wir dir nicht helfen ^^ da ich die hälfte der befehle nitmehr kenne