WIN32OLE InternetExplorer SaveAs command


I’ve been trying to use the WIL32OLE to call the
InternetExplorer.ExecCommand SaveAs command.
I’ve been able to get it to work in the interface mode
where it displays a dialogue browser to save the file,
but have been unable to get it to work in
non-interface mode where you pass it the file to save

Following is an extract of the code I am using.

require ‘win32ole’
ie =‘InternetExplorer.Application’)
ie.visible = true

myUrl = “

ie.navigate myUrl
sleep 1