• "DOS type echo"

    From gavincahill11@gmail.com@21:1/5 to All on Sat Apr 24 23:33:46 2021
    I am using run() to run a robocopy command. How do I hide the DOS style echo. I have tried >NUL with no diffenence.
    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Sun Apr 25 11:10:42 2021
    Try using ShellExecute():

    FUNCTION MAIN()

    SHELLEXECUTE( 0, 0, "your command here", "your parameters here", 0, 0 )

    RETURN NIL


    #pragma BEGINDUMP

    #include "windows.h"
    #include "hbapi.h"


    HB_FUNC( SHELLEXECUTE )
    {
    hb_retnl( ( LONG ) ShellExecute( ( HWND ) hb_parnl( 1 ), hb_parc( 2
    ), hb_parc( 3 ), hb_parc( 4 ), hb_parc( 5 ), hb_parni( 6 ) ) );
    }

    #pragma ENDDUMP

    EMG

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gavincahill11@gmail.com@21:1/5 to Enrico Maria Giordano on Wed Apr 28 19:48:30 2021
    On Sunday, April 25, 2021 at 7:10:45 PM UTC+10, Enrico Maria Giordano wrote:
    Try using ShellExecute():

    FUNCTION MAIN()

    SHELLEXECUTE( 0, 0, "your command here", "your parameters here", 0, 0 )

    RETURN NIL


    #pragma BEGINDUMP

    #include "windows.h"
    #include "hbapi.h"


    HB_FUNC( SHELLEXECUTE )
    {
    hb_retnl( ( LONG ) ShellExecute( ( HWND ) hb_parnl( 1 ), hb_parc( 2
    ), hb_parc( 3 ), hb_parc( 4 ), hb_parc( 5 ), hb_parni( 6 ) ) );
    }

    #pragma ENDDUMP

    EMG

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    Thank you for the reply. I will try that .
    GC

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)