I need help on executing an application with a commandline. The commandline is like this: -game cstrike +connect 127.0.0.1:27025 where the port (currently 27025) is modified by the user. Could someone please help me code this.
Printable View
I need help on executing an application with a commandline. The commandline is like this: -game cstrike +connect 127.0.0.1:27025 where the port (currently 27025) is modified by the user. Could someone please help me code this.
This should work:
Code:Shell "app.exe -game cstrike +connect 127.0.0.1:27025", vbNormalFocus
That does work, but I also need the port (27025) to change by label1. So if label1 was 27020 then it would load like this "hl.exe -game cstrike +connect 127.0.0.1:27020"
Code:Shell "hl.exe -game cstrike +connect 127.0.0.1:" & Label1.caption, vbNormalFocus
Thank you a whole bunch!