In the following code, I expect to get Google's logo saved to my E drive.
What I get instead is the Save Picture dialog box with the default path (My Pictures) and the original file name, "logo.gif". Can anybody tell me what I'm doing wrong? I know there are other ways to do this, but when I think I'm doing something right, and it doesn't work, I have to find out WHY!
Thanks!
Code:
WebBrowser1.Navigate "[URL unfurl="true"]http://www.google.com/images/logo.gif"[/URL]
WebBrowser1.Document.ExecCommand("SaveAs", False, "e:\test.gif")
What I get instead is the Save Picture dialog box with the default path (My Pictures) and the original file name, "logo.gif". Can anybody tell me what I'm doing wrong? I know there are other ways to do this, but when I think I'm doing something right, and it doesn't work, I have to find out WHY!
Thanks!