there is for sure RUN options in Java to dont see the cmd window (invisible).
in scripting from vfp :
local oshell
oshell=newObject("wscript.shell")
oshell.run("cmd.exe",0)
oshell=null
read:http://ss64.com/vb/run.html
in pure vfp APIs
constants:
0 Open the application with a hidden window.
1O pen the application with a normal window. If the window is minimized or maximized, the system restores it to its original size and position.
2 Open the application with a minimized window.
3 Open the application with a maximized window.
4 Open the application with its window at its most recent size and position. The active window remains active.
5 Open the application with its window at its current size and position.
7 Open the application with a minimized window. The active window remains active.
10 Open the application with its window in the default state specified by the application.
these constants can be found as #define.....
DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
result = ShellExecute(0, "open", "cmd.exe","","",0)
note: a hidden window can be destroyed manually in taskmanager (open and termine) , by !TaskKill,....