uhm. well. yes.
I might not have been super clear and marked the <executable> to actually mean that filename, but it should obviously read
ioUrbanTerror.exe +connect <serverIP>[:<serverPort>]
where <serverIP> is the IP where your server is running, and <serverPort> would be any custom port you set on the server. This is optional, indicated by the notation of [], which is common in command documentation. Additionally i would add that the notation of <IP>:<port> is standard for IP + port combinations.
On an related note, the
cd / and
c: in your code is entirely unnecessary as net use doesnt care where it is called from. The switching of the workspace to
u: can be avoided by simply adding it to the command you use to start UrT.
your entire .bat file could look like this:
net use u: 10.10.41.xxxut
start "" /D "u:" "ioUrbanTerror.exe" +connect <serverIP>
im using start here, because i have no idea how windows handles paths given as part of commands and how it selects the working directory for an executable. With start at least i know, and its simple to specify. The first
""is the name of the created cmd window, which is irrelevant here, but has to be set. the
/D "u:" sets the working directory of the executble to your network drive. the third is obviously just your excutable name, which is then followed by any parameters handed to it.
Alternatively, if you want to disconnect the network drive after the game is closed use:
net use u: 10.10.41.xxxut
start "" /D "u:" /WAIT "ioUrbanTerror.exe" +connect <serverIP>
net use u: /DELETE
this will wait for the executable to be done (aka someone closed the game), and then disconnect the network drive.