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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 341 |
Nodes: | 16 (2 / 14) |
Uptime: | 25:07:50 |
Calls: | 7,510 |
Calls today: | 7 |
Files: | 12,713 |
Messages: | 5,641,565 |
Posted today: | 2 |