Solved

Batch File Install

Posted on 2013-01-24
7
259 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 51

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 51

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I've already touched on keyboard shortcuts that can be used in a BlackBerry to make navigation much more easy but there are also another set of commands which are hidden for different reasons. Standard users won't need these unless under exceptional…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now