Hello @yosef_mreh! Next time you post a code, please place your code inside the code tags, to let the forum engine formating it, to a suitable format. You can do it by simply clicking on the (Code) button up the edit box's toolbar, there you typing.

There is also an api call is missing here, he/she cant use your code, without it.
http://allapi.mentalis.org/apilist/ShellExecute.shtml