Solved

Batch File Install

Posted on 2013-01-24
7
267 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 54

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 54

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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is a basic guide on setting up email accounts on BlackBerry mobile devices using the BlackBerry Internet Service (BIS). If you just want access to your email with the option to send email using this same account then this guide should be helpfu…
After going through the deployment of BlackBerry Device Service 10, and seeing a number of questions posted about it, this article addresses some of the issues and particulars of the installation. There have been a number of other questions posted, …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 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