Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute strange
Message
From
05/03/2016 05:40:56
 
 
To
04/03/2016 13:46:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01632548
Message ID:
01632568
Views:
56
>Hi folks
>
>I have a Shellexecute that is different. It gives different result then the same Shellexecute for example from VBA
>
>What I do is
>
>DECLARE INTEGER ShellExecute ;
>	    IN SHELL32.DLL ;
>	    INTEGER nWinHandle,;
>	    STRING cOperation,;
>	    STRING cFileName,;
>	    STRING cParameters,;
>	    STRING cDirectory,;
>	    INTEGER nShowWindow
>?ShellExecute(0, "open", "C:\Program Files (x86)\Git\git-bash.exe", "", "C:\", 1)
>
>(comes with git from git-scm.com)
>
>What should raise git bash schell
>
>it raises it - but two additional windows too.
>
>If I do this from VBA I get just the shell window, same as I run the exe directly or any other way.
>
>RUN and Ed Rau's api_apprun CreateProcess will fail too.
>
>Seems to be something strange on VFP?

Tried in my system, from VFP. Working fine, just one terminal window (and process in the task manager).
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform