LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

system() call opening shell

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(2,474 Views)

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

0 Kudos
Message 2 of 3
(2,420 Views)
Solution
Accepted by topic author M.Guizzetti

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

0 Kudos
Message 3 of 3
(2,416 Views)