Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 15th, 2010, 02:25 PM
tomjames tomjames is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 28 tomjames User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 44 m 57 sec
Reputation Power: 0
Running Multiple Task Batch File in CMD Dos for Windows XP

I have a quick question if anyone knows the answer: I am trying to run a batch file with multiple commands on it, but after it executes the first task, it will not proceed to the next task until after I close the program that was opened from the first task, I've tried taskkill but it won't even go to the taskkill command until after I manually close the program that is opened! and then it goes to the taskkill command and says file not found, b/c I closed it manually! Anyways here is an example of what I am trying to run, this is the first line:

cd C:\Program Files\Web Content Extractor
WCExtractor.exe "C:\Documents and Settings\HP_Administrator\My Documents\DATASCRAPE\datafile.wcepr" -qe"C:\perl2exe\practicescript\TOMSCGI\datafile1.txt"

WHAT I NEED: i want it to continue to the next line on its own, b/c I have multiple files I am trying to run through, the next line example is:

WCExtractor.exe "C:\Documents and Settings\HP_Administrator\My Documents\DATASCRAPE\datafile.wcepr" -qe"C:\perl2exe\practicescript\TOMSCGI\datafile2.txt"

PROBLEM: the problem is it won't go to the next line until I manually close the program file from the first line! I've tried placing this after each task:
taskkill /im WCEXTR~1.exe /f
but it won't even go to that command until the program is closed... any help or suggestions would be much appreciated ! thanks tom

NEVERMIND I THINK I GOT IT FIXED!

SOLUTION WAS: to place -ex (to exit the program) at the end of the line and then use taskkill on the same line! and it moves right along...

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Running Multiple Task Batch File in CMD Dos for Windows XP

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap