Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a simple batch file which is supposed to install Flash by going to the website and selecting the download button. However what it does is entirely different: it goes to the website and the site downloads two folders, neither of which have the download in them.

Can someone give me some direction so that I can get this script working? I am pretty desperate for a solution that will click the download button so that I do not have to perform this operation on all the computer and/or servers in my department.

Let me know if my syntax is incorrect or if I am not even in the right ball park.

Here's the script:

@ECHO OFF
ECHO INSTALLING ADOBE FLASH PLAYER ACTIVE X
ECHO.
start iexplore.exe http://get.adobe.com/flashplayer/
wget -drc get.adobe.com/flashplayer/download/ 
pause
ECHO.
ECHO COMPLETE!
EXITcode here
share|improve this question
    
Um... last time I checked, wget doesn't click buttons for you. –  Wuffers Jun 20 '11 at 16:34
add comment

2 Answers

What you're trying to do is outside the scope of a simple script/batch file using wget. You should use the re-distributable version of Flash player.

This Adobe site has the relevant detail. Complete the form and follow their instructions.

share|improve this answer
add comment

You could use AutoIt to create an executable that you include with your batch file that would detect the adobe download page and automate the process from there.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.