public static void InitializeContent(IHTMLElement e) { var ref4 = "assets/jDOSBoxAppletWithWarcraft/war1.img"; var location = "" + Native.Document.location; // <param name="param1" value="imgmount e http://127.0.0.1:20169/assets/jDOSBoxAppletWithWarcraft/war1.img"> var cmd = "imgmount e " + location.TakeUntilLastIfAny("/") + "/" + ref4; new IHTMLParam { name = "param1", value = cmd }.AttachTo(e); new IHTMLParam { name = "param2", value = "e:" }.AttachTo(e); new IHTMLParam { name = "param3", value = "dir" }.AttachTo(e); //new IHTMLParam { name = "param4", value = "cd war1" }.AttachTo(e); //new IHTMLParam { name = "param5", value = "setup" }.AttachTo(e); //new IHTMLParam { name = "param6", value = "war" }.AttachTo(e); //e.AttachToDocument(); e.With( ee => { Native.Document.body.insertBefore( ee, Native.Document.body.firstChild ); ee.style.Float = IStyle.FloatEnum.right; } ); }