I used both CreateUrlMoniker() and CreateUrlMonikerEx(). I originally used URLDownloadToFile(), which works great for everything except for cases when the web site sends the file, such as from web based email with a file attachment.
For example Hotmail sends the file with a URL similar to this. http://64.4.22.250/cgi-bin/getmsg/test.doc?curmbox=F143938599&a=9028e9ed348aeb1e2152cc3450e09d65&msg=MSG1074019584.26&start=306925&len=33024&mimepart=5&disk=64.4.22.68_d1453&login=cord02&domain=hotmail%2ecom&_lang=EN&country=US URLDownloadToFile, does not download the file, but downloads the HTML page the file is sent from. --Scott -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ehsan Akhgari Sent: Tuesday, February 10, 2004 12:10 AM To: [EMAIL PROTECTED] Subject: RE: [msvc] IDownloadManager > I use CreateURLMoniker to create a new IMoniker from the IMoniker IE > is sending, but the URL Display Name is still the same. So, you're using CreateURLMonikerEx( ) you mean? > Ultimately I want to download the file to disk and I notice the > IMoniker has a Save method. Would it be possible to use the IMoniker > Save method to download the file, and is there an example of this > somewhere? Erm, why not just use URLDownloadToFile( )? ------------- Ehsan Akhgari List Owner: [EMAIL PROTECTED] [ Email: [EMAIL PROTECTED] ] [ WWW: http://www.beginthread.com/Ehsan ] Under conditions of peace the warlike man attacks himself. -Beyond Good And Evil, F. W. Nietzsche _______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
