dronez4   -  Aug 26, 2013

Hello.. i'm having a little problem..

I coded a batch file that would run a game called renegade.. but it just messes up because in the path it has a space.. for example if i tried

start "%path% +connect +netplayername "%id%" "

it would just open up the desktop?

%path would be C:/Program files/renegade/game.exe
%id would be OSTKdrone

This is kind of a wierd problem, someone please get back to me.. as the 2 quotes are suppose to filter the space problem.

Please get back to me someone

the quotes around the path will get it to read the path correctly, but that then messes with its ability to add on the paramaters to the exe in the batch

Sorasyn  -  Aug 28, 2013

Wrap the path variable contents in quotations. When you wrap the variable itself in quotes you are telling the computer it's part of a string, not a variable to be used.

dronez4  -  Aug 29, 2013

Hi, i tried doing the variable wraped in quotes.. Except when i try it
It only shows like.. 1/2 of the path.. everything is right as well 0.0

I Tried Wrapping it in every which way possible.. could u find a solution here?

In the file, %path% would be
C:\Program Files\Renegade\game.exe

Could u find out how i could start it like this?

start C:\Program Files\Renegade\game.exe +connect 208.115.205.106:5000 +netplayername "OSTKdrone"

it just wont work out for me.

in the script it usually works without spaces
(script line)
start %path% +connect IP:Port +netplayername "%id%"
(script line)

Help please?

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.