Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

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 September 1st, 2003, 09:53 AM
nrasool nrasool is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 5 nrasool User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking Please could someone help with a shell command question?

Hi there

Just a bit of a newbie question to ask you fellow programmers

I am using a shell command function to execute an external program.

What i would like to do in vb, is to check to see if that external program has been closed or is it still running?

Can this be done, Please could i have some pointers on where to look?

I have tried searching on this forum

Last edited by nrasool : September 1st, 2003 at 10:13 AM.

Reply With Quote
  #2  
Old September 1st, 2003, 10:25 AM
slconsult slconsult is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Essex, ON
Posts: 18 slconsult User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 m 35 sec
Reputation Power: 0
You could try the Me.Close function at the end of your routine. First, use task manager after you execute it to see if it is running. If it isn't, then you don't have a worry.

Reply With Quote
  #3  
Old September 1st, 2003, 10:51 AM
nrasool nrasool is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 5 nrasool User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi there

Thanks for the comment, i found another solution which works as well.

Wait for a Process to Terminate w/ WaitForSingleObject
http://www.thescarms.com/VBasic/wait.asp

Many thanks for your help

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Please could someone help me with a logical problem


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT