How to send an rcon to a given ip aswell as the command?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
MLGsuperGame414
Posts: 54
Joined: 10 Nov 2011 20:40

How to send an rcon to a given ip aswell as the command?

#1 Post by MLGsuperGame414 » 20 Dec 2011 17:04

I wan't the ability to give the batch file and ip then it prompts me with the rcon command I want to send which would be %N0000000000000000. Does anyone know how to go about this?


MLGsuperGame414
Posts: 54
Joined: 10 Nov 2011 20:40

Re: How to send an rcon to a given ip aswell as the command?

#3 Post by MLGsuperGame414 » 21 Dec 2011 12:10

Thanks a bunch!

MLGsuperGame414
Posts: 54
Joined: 10 Nov 2011 20:40

Re: How to send an rcon to a given ip aswell as the command?

#4 Post by MLGsuperGame414 » 21 Dec 2011 12:40

Okay this is as far as I have gotten.
Not sure if this even works because I cant even run it.
Hopefully someone can help i'm extremely new to batch so i'm a noob. Remember this command is going to a gaming server so I am not sure if this is even possible.

Code: Select all

@echo off
REM Test for cluster storm
:Testing:
set %ip%
set %cmd%
Echo. Enter Ip of the Server
set/ cmd=Command you wish to send to server.
set/ ip=Enter the IP of the remote server you wish to send rcon commands to.
winrs [-ip/(IP address of gaming server)[%cmd%(command I want to send)]
Echo.

Post Reply