FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ShellExecute()
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
ShellExecute()
Posted: Wed Nov 05, 2008 02:34 PM

Hi, is possible use ShellExecute() with no show window?

I want to execute a script:

SHELLEXECUTE( 0, 0, "'http://www.transp.com.br/act", 0, 0, 1 )

but i want not display a browse window.

Thanks.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ShellExecute()
Posted: Wed Nov 05, 2008 02:58 PM

Try passing 0 as the last parameter.

EMG

Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: ShellExecute()
Posted: Wed Nov 05, 2008 03:39 PM
Enrico Maria Giordano wrote:Try passing 0 as the last parameter.

EMG


Thanks, but don't work.

Wanderson.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ShellExecute()
Posted: Wed Nov 05, 2008 04:36 PM
Then try this:

oExplorer = CREATEOBJECT( "InternetExplorer.Application" )

oExplorer:Navigate2( "http://www.transp.com.br/act" )

WHILE oExplorer:ReadyState <> 4
    SYSREFRESH()
ENDDO

oExplorer:Quit()


EMG
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: ShellExecute()
Posted: Wed Nov 05, 2008 08:02 PM
Enrico Maria Giordano wrote:Then try this:

oExplorer = CREATEOBJECT( "InternetExplorer.Application" )

oExplorer:Navigate2( "http://www.transp.com.br/act" )

WHILE oExplorer:ReadyState <> 4
    SYSREFRESH()
ENDDO

oExplorer:Quit()


EMG


Perfect! Thank you.
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
ShellExecute()
Posted: Wed Nov 05, 2008 09:03 PM

or this:

ShellExecute( 0, 'Open', 'http://www.google.com/' )

Thank you

Harvey

Continue the discussion