EXECUTE Command
Previous topic  First topic  Next topic


This command is used to execute an external command

EXECUTE <cCommand> [ PARAMETERS <xParm> ] [ WAIT ] [ HIDE ] [ MINIMIZE ] [ MAXIMIZE ] [ INFILE <cFileIn> ] [ OUTFILE <cFileOut> ] [ DEFAULTFOLDER <cDefFolder> ] [ RETURNCODE <var> ]


  • <cCommand> = Command to execute
  • <xParm> = (Optional) parameters for cCommand
  • WAIT = (Optional) the process wait to cCommnad finish
  • HIDE = (Optional) the process will be executed hided
  • MINIMIZE = (Optional) the process will be executed minimized
  • MAXIMIZE = (Optional) the process will be executed maximized
  • <cFileIn> = (Optional) Redirect Standard Input to this file
  • <cFileOut> = (Optional) Redirect standard output and error output to this file
  • <cWorkingDirectory> = (Optional) Set working directory to this folder
  • <var> = Name of variable were process will put the return code
  • .


    Return: Function returns the cCommand return code or an error code.


    0: MG_EXEC_SUCCESS
    200: MG_EXEC_CRASH
    222: MG_EXEC_CANCELED
    252: MG_EXEC_INVALID_PARM
    253: MG_EXEC_USER_CANCELED
    254: MG_EXEC_NOT_QT_DLL
    255: MG_EXEC_NOT_START


    You can use the mg_Execute( ... ) function to do the same



    Marinas-GUI Version 03.06 and
    Marinas-IDE Version 05.06 and
    LEX Files Version 02.06


    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    last update: April 27
    2017
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------




    A Harbour/QT framework to make multiplatform programs

    (©) Copyright 2009-2017 by Fernando Santolin (aka CarozoDeQuilmes)
    CarozoDeQuilmes@gmail.com

    2009-2017 Beta tester and full English translator: Bruno Luciani
    Bruno.Luciani@gmail.com

    2014-2015 Final English corrector: David Worboys
    DavidWorboys@hotmail.com

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    www.marinas-gui.org


    www.marinas-gui.org  

    Previous topic  First topic  Next topic