O.P. Send variable as command line paramter
Hi,
I can get my command line working with additional arguments, but I want to include the message text as one of these parameters and every time I try to include this variable I get an object error. See my code below;
var result = Interop.Call("shell32.dll", "ShellExecuteW", null, "open", "C:\\mythtvosd.exe", "--type=scroller --text=" + varmessage,"", 10)
Surely I am just syntaxing it wrong but I cant find anything on the net to help?
Cheers,
PaulieG
|