배치 파일 메신저를 만들어 두 사람 사이에서 통신하려고합니다.배치 파일 메신저를 만들려고합니다.
@echo off
color a
title MESSENGER
cls
:start
cls
title MESSENGER
echo Where do you want to go?
echo 1. Inbox
echo 2. New Message
echo Enter the number of your choice
echo ________________________________________________________________
set /p startc=Choice:
if %startc% equ 1 goto inbox
if %startc% equ 2 goto ini
if %startc% neq 1 goto bad
if %startc% neq 2 goto bad
:bad
cls
echo Sorry but that is not a choice.
pause
goto start
:inbox
cls
set /p msgin= <\\MYPC\msg.txt
echo %msgin%
pause
goto start
:ini
cls
echo Please don't send messages longer than one line.
echo YOU CAN TYPE NOW
echo ________________________________________________________________
set /p msg= MESSAGE:
echo %msg%>\\OtherPC\msg.txt
cls
echo DELIVERING--
echo !!
timeout/t 1 /nobreak>nul
cls
echo DELIVERING--
echo !!!!
timeout/t 1 /nobreak>nul
cls
echo DELIVERING--
echo !!!!!!
timeout/t 1 /nobreak>nul
cls
echo DELIVERING--
echo !!!!!!!!
timeout/t 1 /nobreak>nul
cls
echo MESSAGE DELIVERED!
pause
goto start
다른 PC에 파일을 저장하고 싶습니다. 그러나 네트워크 위치에 에코 할 수 없습니다. 누군가가 나를 도울 수 있다면. 그리고 아이에게이 작업을 설명해야하기 때문에 간단한 명령 세트를 사용하여 가능한지 알려주십시오.
Windows 8.1을 실행하고 있습니다.
아마도 도움이 될 것입니다. http://stackoverflow.com/questions/22853783/send-a-message-over-network-using-cmd-to-specified-pc-name-and-username 왜 도대체 그 일괄 처리? – jAC
@ JanesAbouChleih 유감스럽게도, 저는 Windows 8.1을 실행 중입니다. – magnus167
'waitfor' 명령을 사용하여 메시지가 대기 중임을 알리는 신호를 다른 컴퓨터에 보내려합니다. 그러면 메시징이 즉시 이루어질 수 있으며받은 편지함이 필요하지 않습니다. 신호가 수신되면 msg.txt 만 입력하면됩니다. 자세한 내용은 콘솔 창에서'waitfor /? '를 참조하십시오. – rojo