CounterStrike passing starting parameters to shortcut

counter-strike

i want to make counter-strike shortcut with connect parameter when game stats automatically connect to server

I have tried -connect xx.xx.xx.xx:27015 but i does not works

Best Answer

According to this you should do it like that:

steam://connect/<ip address>:<port>

It can be a simple .bat file or a shortcut for a browser that will load that link. Other option is to use this argument:

+connect <ip address>:<port> 

Hope it helps