It checks to see if Bing Desktop is installed, checks to see if an image has been downloaded by the application, then attempts to copy it, checking to see if the image has already been saved, in which case it offers to overwrite the image.
AutoIt
; Bing Desktop Wallpaper Saver ; Created by cyberguy91 ; 04/28/2012 ;Image Destination $dest = @UserProfileDir & "\Pictures\BingWallpaper " & @MON & "-" & @MDAY & "-" & @YEAR & ".jpg" ;Check that Bing Desktop is installed $check = FileExists(@ProgramFilesDir & "\Microsoft\BingDesktop\") If $check = True Then saveimage() Else MsgBox(1, "Error", "Bing Desktop is not installed.") EndIf ;Image Saving Function Func saveimage() If FileExists(@UserProfileDir & "\AppData\Local\Microsoft\BingDesktop\themes\image.jpg") = True Then If FileExists($dest) Then $exists = MsgBox(4, "Error", "The file already exists. Overwrite?") Select Case $exists = 6 FileCopy(@UserProfileDir & "\AppData\Local\Microsoft\BingDesktop\themes\image.jpg", $dest, 1) Exit Case $exists = 7 Exit EndSelect Else FileCopy(@UserProfileDir & "\AppData\Local\Microsoft\BingDesktop\themes\image.jpg", $dest) EndIf Else MsgBox(1, "Error", 'Could not locate image. Are you sure you have selected "Make the daily homepage image your background desktop" in Bing Desktop?') EndIf EndFunc ;==>saveimage



