>>>To execute a DOS command I use the FoxPro RUN command.
>>>But the drawback is that always the DOS box flashes.
>>>I had the properties for the foxrun file set to run minimized. And the screen usage to Window.
>>>But still it is flashing.
>>>
>>>Anybody a solution??
>>
>>What are you trying to do via DOS? Is the Windows Script Host an option?
>I'm trying to run an unzip command line WZUNZIP.exe .
>This for automation purposes.
I see. I thought you were trying to run a DOS command as opposed to a DOS program.
Using the RUN /N< nWindowState> should work as Vlad pointed out. However, if you create a PIF file (shortcut) this can be used to control the window's state (such as minimized) and have the program automatically close the window on exit.
>And maybe the Windows script host is a viable solution.
>But I don't know that it is possible to execute this exe command line using the script host.
It can execute PIF files, and if you need the calling application to wait until the process is complete it can also do that as well. In this instance, because it is DOS, you'll need to provide the DOS (short) file name.
George
Ubi caritas et amor, deus ibi est