Jump to content

Can you help me downloading a file.rar prom a web page?


Recommended Posts

Hi . This is what a want to do.

I have this web page http://www.skystar-2.com/

and i want to download a file which is there, the file SoftCam.key.rar

so I need this http://www.skystar-2.com/download/softcam.key.rar

I write

INetGet('http://www.skystar-2.com/download/softcam.key.rar' @ScriptDir &'\softcam.key.rar')

Exit

It looks like it is working, the file softcam.key.rar is beeing created in my folder, but it doesnt opened with winrar. (the real file should be 50 kb, but this is only 25)

What im i doing wrong? Can anybody help ? Thanks ,

Link to comment
Share on other sites

Hi . This is what a want to do.

I have this web page http://www.skystar-2.com/

and i want to download a file which is there, the file SoftCam.key.rar

so I need this http://www.skystar-2.com/download/softcam.key.rar

I write

INetGet('http://www.skystar-2.com/download/softcam.key.rar' @ScriptDir &'\softcam.key.rar')

Exit

It looks like it is working, the file softcam.key.rar is beeing created in my folder, but it doesnt opened with winrar. (the real file should be 50 kb, but this is only 25)

What im i doing wrong? Can anybody help ? Thanks ,

your saveing http://www.skystar-2.com/ homepage in softcam.key.rar extension becose they have redirect protection, do you have maby some other site to download from?

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Anyone can help?

Use the IE.au3 UDF to access it the way you would manually, access the http://www.skystar-2.com/ web site, click on the download link for that file...

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Ok thanks , I found another solution by using another program, the wget.exe if anyone knows it ,and calling it with dos commands form autoit3 finally..

The final code is this in my pc . Perhaps it is useful to others if anyone understand what is doing....

RunWait(@ComSpec & ' /c wget -P D:\FREE\skystar\softcamget\temp --referer=http://www.skystar-2.com

http://www.skystar-2.com/download/SoftCam.key.rar', "", @SW_HIDE)

RunWait(@ComSpec & ' /c unrar x -o+ D:\FREE\skystar\softcamget\temp\SoftCam.key.rar D:\FREE\skystar\softcamget\temp\', "", @SW_HIDE)

RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\Vplug\*.* D:\FREE\skystar\ProgDVB4\Plugins\ /y', "", @SW_HIDE)

RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\S2emu\*.* D:\FREE\skystar\ProgDVB4\Plugins\ /y', "", @SW_HIDE)

RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\SoftCam.Key D:\FREE\skystar\ProgDVB4\Plugins\SoftCam.Key', "", @SW_HIDE)

RunWait(@ComSpec & ' /c del D:\FREE\skystar\softcamget\temp\SoftCam.key.rar', "", @SW_HIDE)

In the folder D:\FREE\skystar\softcamget i put the script and i also have the wget.exe and UnRAR.exe

Link to comment
Share on other sites

  • 2 weeks later...

Ok thanks , I found another solution by using another program, the wget.exe if anyone knows it ,and calling it with dos commands form autoit3 finally..

The final code is this in my pc . Perhaps it is useful to others if anyone understand what is doing....

RunWait(@ComSpec & ' /c wget -P D:\FREE\skystar\softcamget\temp --referer=http://www.skystar-2.com

http://www.skystar-2.com/download/SoftCam.key.rar', "", @SW_HIDE)

RunWait(@ComSpec & ' /c unrar x -o+ D:\FREE\skystar\softcamget\temp\SoftCam.key.rar D:\FREE\skystar\softcamget\temp\', "", @SW_HIDE)

RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\Vplug\*.* D:\FREE\skystar\ProgDVB4\Plugins\ /y', "", @SW_HIDE)

RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\S2emu\*.* D:\FREE\skystar\ProgDVB4\Plugins\ /y', "", @SW_HIDE)

RunWait(@ComSpec & ' /c copy D:\FREE\skystar\softcamget\temp\SoftCam.Key D:\FREE\skystar\ProgDVB4\Plugins\SoftCam.Key', "", @SW_HIDE)

RunWait(@ComSpec & ' /c del D:\FREE\skystar\softcamget\temp\SoftCam.key.rar', "", @SW_HIDE)

In the folder D:\FREE\skystar\softcamget i put the script and i also have the wget.exe and UnRAR.exe

Thanks, this helped me a lot :)

wget.exe is a useful piece of software. It would be nice to have some of its features in autoit's InetGet()

Edited by footswitch
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...