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
Solved

Batch file under XP /wait (or wait for app to finish)

Posted on 2006-11-08
5
1,307 Views
Last Modified: 2012-08-13
Hi, I am creating a batch file to automate lanching of my application, but I am wanting to launch the application and have the batch process wait until the application has finish (been exited/closed) before it continues.

I have tried the start /wait <my.exe> but it only waits until the application has started running before continuing.

Is there anyway to do this so I can have the batch file launch the exe, wait and when the program has finished running (even if it is running for a while) to continue after?

Help is greatly appriciated as I have been using pause to pause after start /wait, but then I have to press a key to continue with the batch and want to make it automated. I remember seeing it somewhere, been searching, but not found whereI had seen it. :/

Thanks!
0
Comment
Question by:dllfile
  • 3
  • 2
5 Comments
 
LVL 6

Expert Comment

by:Dark_King
ID: 17904563
0
 

Author Comment

by:dllfile
ID: 17914368
kinda looking to do it without using a vbs script, just batch and maybe third party com/exe. I had found one somewhere before but lost the links I had saved (forgot to backup my favs when I reformatted) The batch will need to be able to do what it needs to on machines that have vbs disabled (such as mine)
0
 

Author Comment

by:dllfile
ID: 17992567
anyone? gotta be a way to do without using a vbs, third party exe/com would work as well, I had seen one before just cannot find the site again, was some guy who does all sorts of odds and ends for use with batch files. If you reply here, sorry if I am a bit late getting back, whole family here atm has the flu :/ I just got it and not feeling so well atm.
0
 
LVL 6

Accepted Solution

by:
Dark_King earned 100 total points
ID: 17993974
Only way I now to disable Windows Scripting engine (wscript.exe) on XP
Is to change association on .vbs files or remove files.
Or do you disable vb script from IE, have you try to use wscript on vbs files.

WaitForExe or Title can do the job, try it.

And you can try this http://www.willowhayes.co.uk/download/wait.exe

It’s a program I found that’s wait for exe to end, (wait.exe YourExe)
0
 

Author Comment

by:dllfile
ID: 18039132
ahh, sweet that will work, cheers m8, much appriciated!
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

Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
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…

860 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