SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2008
    Posts
    85
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    ShellExecuteW - nothing happening at all?

    I need to start up another application in some of my tests, and I need it to pretty much hang around running in the background as my tests run. It is a windows application.

    I have been trying to use ShellExecute for this task, but no matter what parameters I pass, the test passes but no application appears.

    Here's my call:
    ShellExecuteW (0, "open", "TMSTestApp.exe", "", "C:\Program Files\MATRA Systems\FREEDOM-POS\App Runtime\bin", 0)

    I've tried a lot of different things, like specifying the full path with the name of the exe. Moving the test app into a directory in the path. That kind of thing.

    Am I just mistaken about the purpose of this call? Just for fun I tried using SYS_Execute but that was clearly no good for my purposes. I also tried reading window declarations on my new application and using MyWindow.Start (but start wasn't defined.)

    I realize this is a very noob question but I've put this problem off far too long!

  2. #2
    Senior Member
    Join Date
    Oct 2002
    Location
    England
    Posts
    368
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ShellExecuteW - nothing happening at all?

    Not a function I use regularly...but you have the final parameter (fsShowCmd) set to 0 which will hide the application.

    See this kb article.

    regards
    Peat

  3. #3
    Member
    Join Date
    Apr 2008
    Posts
    85
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ShellExecuteW - nothing happening at all?

    ARGH, thanks *so* much. I hate that the Microsoft documentation lists the names of the enums and not the actual vaules!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:04 AM.

Copyright BetaSoft Inc.