PerlApp GUI發生問題

PerlApp GUI發生問題

高手;
你好
我用perl做了一個調用cmd shell的程式
system ('net user baggio /add')

我用PerlApp把它轉為.exe
並加了-gui
但是運行時還彈出了cmd shell
請問有什麼可以隱藏那些CMD Shell?
--gui

确定会跳?


[Copy to clipboard] [ - ]
CODE:
Win32::SetChildShowWindow(SHOWWINDOW)
    [CORE] Sets the *ShowMode* of child processes started by system().
    By default system() will create a new console window for child
    processes if Perl itself is not running from a console. Calling
    SetChildShowWindow(0) will make these new console windows invisible.
    Calling SetChildShowWindow() without arguments reverts system() to
    the default behavior. The return value of SetChildShowWindow() is
    the previous setting or "undef".

或者用 Win32::API 调 WinExec