My reason behind this is simply because this allows the shell to work out how it's going to deal with the URL, rather than passing it to a program. For example, if the path to iexplore changes, or if the user has a different browser installed. This keeps your code fairly "future proof" and lowers code maintenance.
Comments
For example Contacts.
bye
See whether this helps. -
static void IExplore(Args _args)
{
#WINAPI
;
WINAPI::shellExecute(C:\\WINDOWS\\ServicePackFiles\\i386\\iexplore.exe');
}
Regards,
Harish Mohanbabu
Long way to go before I sleep..
But if I want to invoke IE with a certain specified URL?
You can use WinAPI::ShellExecute() again. Like -
static void IExplore(Args _args)
{
#winAPI
;
winAPI::shellExecute('C:\\WINDOWS\\ServicePackFiles\\i386\\iexplore.exe','http://www.mibuso.com');
}
Regards,
Harish Mohanbabu
Long way to go before I sleep..
That is what I need!
I always use this format:
My reason behind this is simply because this allows the shell to work out how it's going to deal with the URL, rather than passing it to a program. For example, if the path to iexplore changes, or if the user has a different browser installed. This keeps your code fairly "future proof" and lowers code maintenance.
Cheers!
- Simon