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. ShellExecuteEx()

ShellExecuteEx()

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
4 Posts 3 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.
  • O Offline
    O Offline
    ov
    wrote on last edited by
    #1

    How can I start application, which name is starting from "home" using ShellExecuteEx()? If I try to run "homesite5" it brings me an IE window with "homesite5" as an url. It does the same for all names, starting from "home". It isn't depends of such file existance and availability via %PATH%. And as I found, "Start"->"Run..." acts the same way. Just type "home" there... p.s. I'm using win2k sp2. win98 seems to have the same bug (or feature?) With the best regards, Vitaly.

    D 1 Reply Last reply
    0
    • O ov

      How can I start application, which name is starting from "home" using ShellExecuteEx()? If I try to run "homesite5" it brings me an IE window with "homesite5" as an url. It does the same for all names, starting from "home". It isn't depends of such file existance and availability via %PATH%. And as I found, "Start"->"Run..." acts the same way. Just type "home" there... p.s. I'm using win2k sp2. win98 seems to have the same bug (or feature?) With the best regards, Vitaly.

      D Offline
      D Offline
      dazinith
      wrote on last edited by
      #2

      i had never noticed this before.. it seems your best bet is to put it in quotes with an absolute path.. like "c:\homesite5.exe" still a newb.. cut me some slack :P -dz

      O 1 Reply Last reply
      0
      • D dazinith

        i had never noticed this before.. it seems your best bet is to put it in quotes with an absolute path.. like "c:\homesite5.exe" still a newb.. cut me some slack :P -dz

        O Offline
        O Offline
        ov
        wrote on last edited by
        #3

        quotes will not help... absolute path will, but i don't know it. the reason I'm using ShellExecuteEx() is cause I need to start different apps knows only their names not paths. winword, notepad etc... With the best regards, Vitaly.

        S 1 Reply Last reply
        0
        • O ov

          quotes will not help... absolute path will, but i don't know it. the reason I'm using ShellExecuteEx() is cause I need to start different apps knows only their names not paths. winword, notepad etc... With the best regards, Vitaly.

          S Offline
          S Offline
          Stephane Rodriguez
          wrote on last edited by
          #4

          There are registry keys for installed apps : hklm/software/microsoft/windows/currentversion/app paths


          How low can you go ?
          (MS rant)

          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