execfile with maximize?

BlitzPlus Forums/BlitzPlus Programming/execfile with maximize?

Hi.
This is how I did it... (Including Sample Code)

site$ = "http://www.yahoo.co.uk/"
iexplorerpath$ = GetEnv$("PROGRAMFILES")+"\Internet Explorer\IEXPLORE.EXE"
ExecFile( Chr$(34) + iexplorerpath$ + Chr$(34) + " -new " + Chr$(34) + site$ + Chr$(34))
WaitKey()
End


This will only work with Internet Explorer and also will only work if Internet Explorer is installed in the default location. (99.999999% of cases it is.) Incase you were wondering the "Chr$(34)" command puts in a speech mark into the string incase the path has spaces in it. Just change the site$ string to whatever you want. ;D

Hope this helps

Seb