roofninja Posted December 19, 2007 Share Posted December 19, 2007 This is my first program using IE, so I am having problems understanding it and using it. What I want to do is find the old file and increase the file by 1 and then download the file from the website. My problem is that when it goes out and gets the file, it asks if I want to run, save or cancel the file. Is there a way to just bypass it and tell it to get the file and put it in this location? I have been through the help index on the PC, but where do I find more information about IE stuff? Thanks for any help. ;This finds the current file. $ide = FileFindFirstFile("C:\fun\sophos_def_update\*_ides.exe") $ide = FileFindNextFile($ide) FileClose($ide) ;This should download the newest file. $num = String($ide) $num = StringTrimRight ($num,9) $num = StringFormat($num) +1 _IECreate("http://www.sophos.com/downloads/ide/"&$num&"_ides.exe",0,0,1,-1);this downloads the file. ;I want it to download to a location. RUN . . . Slide . . . TAG . . . Your out . . . PAINTBALL !!! Link to comment Share on other sites More sharing options...
Das Ami Posted December 19, 2007 Share Posted December 19, 2007 (edited) ;This finds the current file. $ide = FileFindFirstFile("C:\fun\sophos_def_update\*_ides.exe") $ide = FileFindNextFile($ide) FileClose($ide) ;This should download the newest file. $num = StringFormat(StringTrimRight (String($ide),9))+1 InetGet ("http://www.sophos.com/downloads/ide/"&$num&"_ides.exe","C:\fun\sophos_def_update\"&$num&"_ides.exe") ;I want it to download to a location. Edited December 19, 2007 by Das Ami Link to comment Share on other sites More sharing options...
Jex Posted December 19, 2007 Share Posted December 19, 2007 (edited) Use InetGet function for download file. InetGet -------------------------------------------------------------------------------- Downloads a file from the internet using the http or ftp protocol. InetGet ( "URL" [,"filename" [, reload [, background]]] ) Edited December 19, 2007 by Jex My scripts : Immediate Window , My Web Browser , Travian , Text Effect , Characters & Words per minute or second , Image Editor (ImageMagick) , Matrix style background effect ( Screensaver ) , Mail Sender , Protectlinks decoder and Rapidshare links checker , Fonts Fetcher , Region determine , Compare pictures , Gradient color box , Mouse Coordinates, Colors, Pixel Search things , Encrypt/Decrypt and embeding file in jpeg thing , Hard disk space monitor , Reflex game , Multiplayer Tic Tac Toe , WLM ( MSN ) personal message changer Link to comment Share on other sites More sharing options...
roofninja Posted December 19, 2007 Author Share Posted December 19, 2007 Thank both of you for the help. I did not even know what InetGet was, until now. Thanks again. RUN . . . Slide . . . TAG . . . Your out . . . PAINTBALL !!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now