[color=#009000]** change the path to your specific loaction and file name[/color]
path$=[color=#800000]'http://www.mmbgroup.com/news/images/mmbamp.gif'[/color]
[color=#009000]** get full name from path[/color]
Name$=[color=#000090][b]ExtractName[/b][/color](path$)
Ext$=[color=#000090][b]ExtractExt[/b][/color](path$)
FullName$= Name$+Ext$
[color=#009000]**************************[/color]
[color=#009000]**check if PC is connected to Internet[/color]
[color=#000090][b]PluginRun[/b][/color]("MiscPlugIn","Connected")
[color=#000090][b]PluginGet[/b][/color]("MiscPlugIn","Result$")
[color=#0000FF]If[/color] (Result$ = [color=#800000]'False'[/color]) [color=#0000FF]Then[/color]
[color=#000090][b]Message[/b][/color]("Sorry, you are not connected. Please connect internet and try again...","")
[color=#0000FF]End[/color]
[color=#0000FF]If[/color] (Result$ = [color=#800000]'True'[/color]) [color=#0000FF]Then[/color]
URL$ = path$
[color=#000090][b]PluginSet[/b][/color]("MiscPlugIn","URL$")
[color=#000090][b]PluginRun[/b][/color]("MiscPlugIn","URL")
[color=#009000]**Set's the URL[/color]
[color=#009000]**-------[/color]
Dest$ = [color=#800000]'<SrcDir>\\'[/color] + FullName$
[color=#000090][b]PluginSet[/b][/color]("MiscPlugIn","Dest$")
[color=#000090][b]PluginRun[/b][/color]("MiscPlugIn","Download")
[color=#009000]**Set's the destination and Download file[/color]
[color=#009000]**--------[/color]
[color=#000090][b]PluginRun[/b][/color]("MiscPlugIn","Result")
[color=#000090][b]PluginGet[/b][/color]("MiscPlugIn","Result$")
[color=#009000]**Gets the download result...run another code after finishing downloading[/color]
[color=#009000]**or do something else..i.e show message box with result[/color]
[color=#0000FF]If[/color] (Result$=[color=#800000]'Download complete!'[/color]) [color=#0000FF]Then[/color]
[color=#009000]** show the downloaded file in Browser object[/color]
[color=#000090][b]Browser[/b][/color]("Browser","Dest$")
[color=#000090][b]Message[/b][/color]("Download result: ","Result$")
[color=#0000FF]Else[/color]
Result$=[color=#800000]'Error: '[/color] + Result$
[color=#000090][b]Message[/b][/color]("Download result: ","Result$")
[color=#0000FF]End[/color]
[color=#0000FF]End[/color]