Solved

Batch File Install

Posted on 2013-01-24
7
264 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
  • 4
  • 2
7 Comments
 
LVL 53

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 53

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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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…
If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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