Solved

Batch File Install

Posted on 2013-01-24
7
268 Views
Last Modified: 2013-03-18
I want to set up a batchfile that will start the install of a applications which is a file named "install.exe" idealy the dos box will remain open and then we would like to kick off a second file "Update.exe" the files will be located \\10.77.120.10\installs\apps

anyone help me?
0
Comment
Question by:Bransby-IT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 56

Expert Comment

by:Bill Prew
ID: 38815019
Do you want them running at the same time, or one after the other.

If at the same time then you want to use the START command to launch them.  If in series, then use the START /WAIT command.  For example:

@echo off
start /wait "Install" "\\10.77.120.10\installs\apps\install.exe"
start /wait "Update" "\\10.77.120.10\installs\apps\update.exe"

Open in new window

~bp
0
 
LVL 3

Author Comment

by:Bransby-IT
ID: 38815276
thanks bp, yer this is what I have done, well I have been trying with :-

@echo off
start /wait  "\\10.77.120.10\installs\apps\install.exe"

The app just does not open up, if I put it into a commant promt it runs file, but not as a batch?
0
 
LVL 56

Assisted Solution

by:Bill Prew
Bill Prew earned 250 total points
ID: 38815317
Change:

start /wait  "\\10.77.120.10\installs\apps\install.exe"

to:

start "" /wait  "\\10.77.120.10\installs\apps\install.exe"

When you quote the command/program name, then the title parameter is required, it's a "feature" (bug) of START.

~bp
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:Bransby-IT
ID: 38880679
Still looking into this sorry for the delay.
0
 
LVL 3

Author Comment

by:Bransby-IT
ID: 38913487
Still looking into this sorry for the delay.
0
 
LVL 3

Accepted Solution

by:
Damian Pippet earned 250 total points
ID: 38937900
The command start "" /wait  "\\10.77.120.10\installs\apps\install.exe" should work fine. When you are running these from a network share, then they will take a few seconds to open (depending on the size of the installer!)

If you are running Win Vista/7/8, then you will need to execute the command with administrator priveleges ... anything less and they just won't run!
0
 
LVL 3

Author Closing Comment

by:Bransby-IT
ID: 38996008
Thanks team.
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

BlackBerry can provide (arguably) the best global email delivery solution. That is, until something goes wrong at which point it can be a nightmare to troubleshoot. The log files on a BES can only be decoded by an expert and some of the errors that …
The new PlayBook may not be the hottest selling tablet out there and may not be breaking much in the way of new ground but, for the committed BlackBerry users, it allows them to keep pace with a fast-moving industry. Much of the interface is familia…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question