Jump to content

IE question


 Share

Recommended Posts

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

;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 by Das Ami
Link to comment
Share on other sites

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 by Jex
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...