Shell

Used to invoke an external program from our application.

  'You can use any of the three options depending on the program you want to run
  Shell ("calc" AppWinStyle.NormalFocus)

  Shell ("calc.exe" AppWinStyle.NormalFocus)

  Shell ("c: \ windows \ calc.exe" AppWinStyle.NormalFocus)

The possible options for the second parameters are:

 AppWinStyle.Hide
 AppWinStyle.MaximizedFocus
 AppWinStyle.MinimizedFocus
 AppWinStyle.MinimizedNoFocus
 AppWinStyle.NormalFocus
 AppWinStyle.NormalNoFocus

3 Responses to "Shell"

  1. Luis says:

    ......

  2. rita says:

    and how we can utlizarlo to open a arhcivo anyone know?

    • Ramon says:

      Hello, in reference to your inquiry simply change the first parameter for the path to your executable.

      eg If your executable is called MIO.exe code would be:

      shell ("c: \ your path \ mio.exe" AppWinStyle.NormalFocus)

Comment