Opening a file with parameters

hillo10 used Ask the Experts™
hi i was wondering how i would go about opening a file from visual basic using the shell command, i know how to open it normally, but i need an extra parameter at the end, which is entered into a textbox, i'm new to this stuff :/

i use

Shell ("C:\Sierra\Half-Life\hl.exe -console -game cstrike +connect")

which opens fine :)

but i need to add abit on the end which would taken from a textbox.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Shell ("C:\Sierra\Half-Life\hl.exe -console -game cstrike +connect" & " " & text1.text)


thanx alot :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial