07-04-2017 06:36 AM
Hi,
I am creating an application in LabWindows/CVI 2015 with a GUI interface. Inside the application I need to call other programs and wait for them to exit. I am using the system() function. The only issue is that every time I call system() the Windows shell is opened and closed. I also tried to use LaunchExecutableEx() passing LE_HIDE for WindowsState, but nothing changes. Is there any way to avoid the opening shell? I would like to launch the others programs "silently", without opening any shell, since my application should be using only the GUI.
Thanks
Michele
Solved! Go to Solution.
07-07-2017 09:24 AM
Hi,
It's curious. I used LaunchExcutableEx() with LE_HIDE and it doesn't open the Windows shell (the executable is a .bat file executing ncFTPput.exe utility).
Alain
07-07-2017 09:40 AM
Actually I was too quick in my test.
LaunchExcutableEx() with LE_HIDE was not working because I had other "hidden" system() in my code and they were openig the shell.
So now using LaunchExcutableEx() with LE_HIDE allover it works 🙂
Michele