LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2011, 11:28 PM   #1
smturner1
Member
 
Registered: Oct 2009
Location: MI
Distribution: Arch 2.6.35
Posts: 107

Rep: Reputation: 1
batch file to download updates


Hi everyone, I need to know how to write a script that will update my Adobe applications. I seem to be having a problem with closing ie after the completion of the script.

If you see anyother flaws in the syntax let me know. I am learning so I like information and constructive criticism.

Code:
@ECHO OFF
ECHO INSTALLING ADOBE FLASH PLAYER PLUGIN UPDATE
ECHO.
start /wait http://get.adobe.com/flashplayer/download/
sleep 5
ECHO.
ECHO.
ECHO.
ECHO INSTALLING ADOBE READER PLUGIN UPDATE
ECHO.
start /wait http://get.adobe.com/reader/download/
sleep 5
ECHO.
ECHO.
ECHO.
ECHO INSTALLING ADOBE SHOCKWAVE PLUGIN UPDATE
ECHO.
start /wait http://get.adobe.com/shockwave/thankyou/
sleep 5
ECHO.
ECHO.
ECHO.
ECHO COMPLETE!
EXIT
 
Old 06-18-2011, 11:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Doesn't look like any scripting language I'm fluent in; you
sure this is Linux related?


Cheers,
Tink
 
0 members found this post helpful.
Old 06-18-2011, 11:50 PM   #3
smturner1
Member
 
Registered: Oct 2009
Location: MI
Distribution: Arch 2.6.35
Posts: 107

Original Poster
Rep: Reputation: 1
dos

it is dos, but its based on UNIX/Linux commands. A person who writes scripts usually can cipher linux/dos interchageably.
 
Old 06-19-2011, 12:13 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.


Kind of ... but this (DOS) makes it a thread for a different forum.
 
0 members found this post helpful.
Old 06-19-2011, 01:43 PM   #5
smturner1
Member
 
Registered: Oct 2009
Location: MI
Distribution: Arch 2.6.35
Posts: 107

Original Poster
Rep: Reputation: 1
Newbie mistake! the problem was iexplore not iexplorer.

Code:
start /wait iexplore.exe http//:www.website
taskkill /im iexplore.exe
 
Old 06-19-2011, 02:00 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well actually ... there's neither iexplore.exe nor iexplorer.exe
mentioned in your original post.

Quote:
Code:
@ECHO OFF
ECHO INSTALLING ADOBE FLASH PLAYER PLUGIN UPDATE
ECHO.
start /wait http://get.adobe.com/flashplayer/download/
sleep 5
ECHO.
Glad you got it sorted, though.


Cheers,
Tink
 
Old 06-19-2011, 02:18 PM   #7
smturner1
Member
 
Registered: Oct 2009
Location: MI
Distribution: Arch 2.6.35
Posts: 107

Original Poster
Rep: Reputation: 1
Yes I am aware of that.

I needed to correct a couple of things when I got deeper into it.

This line of code is wrong because it needs to have the iexplore.exe placed before the web address, otherwise /wait is omitted:
Code:
start /wait http://get.adobe.com/flashplayer/download/
Because I need /wait and taskkill to work properly, this is correct:
Code:
start /wait iexplore.exe http//:www.website ::/wait command looks for input before taskkill closes
taskkill /im iexplore.exe ::This line kills the previous command
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 13.1 first batch of updates - print crash on firefox and thunderbird sljunkie Slackware 34 12-17-2010 07:35 PM
Wget - Possible to batch download? Jinouchi Linux - Software 7 10-22-2008 11:15 PM
batch file for accessing a shared file in ubuntu samba pdelcast Linux - Networking 5 04-24-2008 12:21 AM
A Download Manager for Batch and Password Save dannymichel Linux - Software 3 06-21-2007 01:04 PM
Batch download of slackware-current ex625 Slackware 10 06-17-2007 11:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration