no window on OS-COMMAND

lcombepine

New Member
Hello,



When I use the command OS-COMMAND, a command shell window popup. It’s possible to hide this window with some OS-COMMAND’s options ?



For information I use the Progress 9.1C and the command is :

OS-COMMAND NO-CONSOLE “C:\bin\curl") VALUE(v_param_curl).



And v_param_curl contain the parameters for curl (surprising :- )



If some body know how solve this problem …
 

parul

Member
hope it helps

in windows, "silent" is used to stop windows command prompt window pop up.
eg

OS-COMMAND SILENT VALUE (C).

C is the command line.
 

lcombepine

New Member
Thanks for your replay.



I know that the SILENT option hide the window, but there is “just” push in the task bar. I want that no window command shell are created, if it’s possible.
 

johnnebi

New Member
In Windows, I found no way to eliminate the window completely. At the very least it will be minimized. I remember dealing with tech support on that. I guess that's why they call it Windows? :)
 
How about:

Code:
procedure WinExec external "kernel32.dll":
	def input parameter ipc_cmd_line as char.
	def input parameter ipc_cmd_show as long.
end procedure.
 
run WinExec(input "c:\bin\curl", input 0).
 

lcombepine

New Member
I have tested this solution. With the silent option nothing is written in the file … and with the winexec procedure, the programme go through this line and start the next, but on the next line I need the result of the winexec procedure … that don’t work to …



Exemple :



RUN WinExec(input "c:\bin\curl –o file_I_need www.a.com", input 0).



INPUT FROM VALUE(file_I_need).

:-(
 
Top