WsShell.Run don't accept variable (e.g. T1) as Argument or Parameter
<p>Below two c# procedures <code>Test1</code> &amp; <code>Test2</code> one is working and one is not working, if anyone know why, please help.</p>

<pre><code>// Not Working X    
    protected void Test1(object sender, EventArgs e)
    {
        string T1;
        T1 = "winword.exe c:/sql_pt_c/mydocx.docx";
        string javaScript =
            "&lt;script language=JavaScript&gt;\n" +
            "WshShell = new ActiveXObject('WScript.Shell');\n" +
            "WshShell.Run(T1, 1, true);\n" +
            "&lt;/script&gt;";
        RegisterStartupScript("", javaScript);
    }


// Working v/
    protected void Test1(object sender, EventArgs e)
    {
        string javaScript =
            "&lt;script language=JavaScript&gt;\n" +
            "WshShell = new ActiveXObject('WScript.Shell');\n" +
            "WshShell.Run('winword.exe c:/sql_pt_c/mydocx.docx', 1, true);\n" +
            "&lt;/script&gt;";
        RegisterStartupScript("", javaScript);
    }
</code></pre>
