C# Process Start runs new Internet Explorer instance with file path converted into url -
i have absolute path of internet explorer executable , absolute path of xml file, , want open xml using ie. code wrote works fine if there aren't instance of ie opened. if there ie instance opened, ie launched , convert filesystem path in url.
first instance of ie open path: (and works fine) c:\workingfolder\preparazioni\dichiaratividp\responsabile conservazione\ipdv.xml
next instance of ie open path: (and fails)
h ttp://%22c/workingfolder/preparazioni/dichiaratividp/responsabile%20conservazione/ipdv.xml%22
this code:
process proc = new process(); proc.startinfo.useshellexecute = true; //ie executable absolute path proc.startinfo.filename = sapplication; //xml file absolute path proc.startinfo.arguments = "\"" + file + "\" " + sadditionalarguments; proc.startinfo.windowstyle = system.diagnostics.processwindowstyle.normal; proc.start(); i tried same code calling chrome browser , works fine, opening new tab every time.
Comments
Post a Comment