Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. help needed in shellexecute

help needed in shellexecute

Scheduled Pinned Locked Moved C / C++ / MFC
htmlhelpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    URagavSouth
    wrote on last edited by
    #1

    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 .

    2 D 2 Replies Last reply
    0
    • U URagavSouth

      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 .

      2 Offline
      2 Offline
      224917
      wrote on last edited by
      #2

      ShellExecute(NULL,"IExplore.exe","C:\\xyz.html",NULL,NULL,SW_SHOWMAXIMIZED);


      suhredayan
      There is no spoon.

      U 1 Reply Last reply
      0
      • 2 224917

        ShellExecute(NULL,"IExplore.exe","C:\\xyz.html",NULL,NULL,SW_SHOWMAXIMIZED);


        suhredayan
        There is no spoon.

        U Offline
        U Offline
        URagavSouth
        wrote on last edited by
        #3

        thnx it worked. URagav Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .

        L 1 Reply Last reply
        0
        • U URagavSouth

          thnx it worked. URagav Everything can be sacrificed for truth, but truth cannot be sacrificed for anything .

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Booh, I hate it. I can't stand it when applications open their HTML files in Internet Explorer, although Firefox is set as my default browser.

          1 Reply Last reply
          0
          • U URagavSouth

            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 .

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups