help needed in shellexecute
-
I need to invoke a html page on my local machine say C:\\xyz.html via shellexecute. When i use ShellExecuteNULL,"Open","C:\\xyz.html",NULL,NULL,SW_SHOWMAXIMIZED); one of the existing IE windows is getting altered..All that i need is - none of the existing IE windows should get disturbed.But i need this html page to be invoked in a new IE window. Also i tried this way. ShellExecuteNULL,"Open","IExplore",NULL,NULL,SW_SHOWMAXIMIZED); ShellExecuteNULL,"Open","C:\\xyz.html",NULL,NULL,SW_SHOWMAXIMIZED); The first statement invoked a new IE window.But the latter statement did not alter this newly created IE window,but it set one of the already existing windows to xyz.html....Can anyone help me in this? URagav Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .
-
I need to invoke a html page on my local machine say C:\\xyz.html via shellexecute. When i use ShellExecuteNULL,"Open","C:\\xyz.html",NULL,NULL,SW_SHOWMAXIMIZED); one of the existing IE windows is getting altered..All that i need is - none of the existing IE windows should get disturbed.But i need this html page to be invoked in a new IE window. Also i tried this way. ShellExecuteNULL,"Open","IExplore",NULL,NULL,SW_SHOWMAXIMIZED); ShellExecuteNULL,"Open","C:\\xyz.html",NULL,NULL,SW_SHOWMAXIMIZED); The first statement invoked a new IE window.But the latter statement did not alter this newly created IE window,but it set one of the already existing windows to xyz.html....Can anyone help me in this? URagav Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .
ShellExecute(NULL,"IExplore.exe","C:\\xyz.html",NULL,NULL,SW_SHOWMAXIMIZED);
suhredayan
There is no spoon. -
ShellExecute(NULL,"IExplore.exe","C:\\xyz.html",NULL,NULL,SW_SHOWMAXIMIZED);
suhredayan
There is no spoon.thnx it worked. URagav Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .
-
thnx it worked. URagav Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .
-
I need to invoke a html page on my local machine say C:\\xyz.html via shellexecute. When i use ShellExecuteNULL,"Open","C:\\xyz.html",NULL,NULL,SW_SHOWMAXIMIZED); one of the existing IE windows is getting altered..All that i need is - none of the existing IE windows should get disturbed.But i need this html page to be invoked in a new IE window. Also i tried this way. ShellExecuteNULL,"Open","IExplore",NULL,NULL,SW_SHOWMAXIMIZED); ShellExecuteNULL,"Open","C:\\xyz.html",NULL,NULL,SW_SHOWMAXIMIZED); The first statement invoked a new IE window.But the latter statement did not alter this newly created IE window,but it set one of the already existing windows to xyz.html....Can anyone help me in this? URagav Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .
Internet Explorer supports the /new command-line switch.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow