Advertisement
Guest User

Untitled

a guest
Jun 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.08 KB | None | 0 0
  1. @echo off
  2. title CLASS MESSENGER
  3.  
  4. :Start
  5. echo Attempting to start the Messenger service...
  6. sc config Messenger start= auto
  7. sc start Messenger > nul
  8. IF ErrorLevel 0 echo The Messenger service has been started successfully.
  9. pause
  10. Cls
  11. echo How many people do you want to talk to?
  12. set /p k=#:
  13. IF %k%==1 Goto One
  14. IF %k%==2 Goto Two
  15. IF %k%==3 Goto Three.
  16. IF %k%==4 Goto Four
  17. IF %k% > 4 (
  18.     echo You can only talk to 4 people at once.
  19.     pause
  20. )
  21. EXIT
  22.  
  23.  
  24. :One
  25. cls
  26. set /p n=IP:
  27. Goto One2
  28.  
  29. :One2
  30. cls
  31. set /p m=Message:
  32. net send %n% %m%
  33. Goto One2
  34.  
  35.  
  36. :Two
  37. cls
  38. set /p n=IP1:
  39. set /p n2=IP2:
  40. Goto Two2
  41.  
  42. :Two2
  43. cls
  44. set /p m=Message:
  45. net send %n% %m%
  46. net send %n2% %m%
  47. Goto Two2
  48.  
  49.  
  50. :Three
  51. cls
  52. set /p n=IP1:
  53. set /p n2=IP2:
  54. set /p n3=IP3:
  55. Goto Three2
  56.  
  57. :Three2
  58. cls
  59. set /p m=Message:
  60. net send %n% %m%
  61. net send %n2% %m%
  62. net send %n3% %m%
  63. Goto Three2
  64.  
  65.  
  66. :Four
  67. set /p n=IP1:
  68. set /p n2=IP2:
  69. set /p n3=IP3:
  70. set /p n4=IP4:
  71. Goto Four2
  72.  
  73. :Four2
  74. cls
  75. set /p m=Message:
  76. net send %n% %m%
  77. net send %n2% %m%
  78. net send %n3% %m%
  79. net send %n4% %m%
  80. Goto Four2
  81. Goto moreMessages
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement