Results 1 to 3 of 3

Thread: Problems with Shell & ShellExecute...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    109

    Problems with Shell & ShellExecute...

    Ok, I'm trying to launch the rainbow six game, buy running the rainbowsix.exe file.....

    Call ShellExecute(Me.hwnd, "open", "C:\Program Files\Red Storm Entertainment\Tom Clancy's Rainbow Six\RainbowSix.exe", "", "", SW_SHOWNORMAL)

    ... when i run that code, the computer sounds like its loading it, then just stops, and the game never opens... i have everything declared properly, file path is correct.... game loads if i do it manually threw windows, and ive tried VB's built in Shell function, that produced same results..... so does anyone have any idea why its not working.... it works for other programs.. but not this one..... but i know it can be done... since other programs do it... UGHH, someone pls help

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Try setting a working directory:
    Call ShellExecute(Me.hwnd, "open", "C:\Program Files\Red Storm Entertainment\Tom Clancy's Rainbow Six\RainbowSix.exe", "", "C:\Program Files\Red Storm Entertainment\Tom Clancy's Rainbow Six", SW_SHOWNORMAL)

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    109
    lol... thank u sooo much im so dumb, why didnt i think of that?

    btw, it worked .. if u didnt notice from my excitement

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width