Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Detect Steps of a Application

Posted on 2008-06-21
5
Medium Priority
?
267 Views
Last Modified: 2010-04-23
I am developing a VB.net application, which will do the following.

1 - By using wget, download certain Files from internet.
2 - After downloading is finished, I need to Move to next step and Create Tables in SQL Server.
3 - After tables are created i need to start dumping downloaded data into created Tables.

As you can see each step depends on previous step. In VB.net GUI i would like to show end user at which step application is right now(what step application is perfoeming currently).

Step1 will open a Batch file, I dont know how to detect termination of batch file and move to next Step.

Please Advise.

Thanks
0
Comment
Question by:Saqib Khan
[X]
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
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:elimesika
ID: 21838770
HI

you should use :

object.Run(strCommand, [intWindowStyle], [bWaitOnReturn])
 
The bWaitOnReturn cause the application to wait to strCommand (your batch) to finish


See examples at
http://msdn.microsoft.com/en-us/library/d5fk67ky(VS.85).aspx
0
 
LVL 23

Author Comment

by:Saqib Khan
ID: 21841042
how to do this is vb.net?
any suggestions regarding Steps explaination?

Thanks
0
 
LVL 19

Expert Comment

by:elimesika
ID: 21841232
Have you followed the link ? , there are VB examples there as well.
Please elaborate ...

thanks
0
 
LVL 23

Author Comment

by:Saqib Khan
ID: 21841799
That Link is for "Windows Script Host", But I did found an alternate on Google and it works fine.

I am using Threading.Sleep Function to delay between Steps, is this Function optimized or am i hammering Server with Sleep Function?

Thanks
0
 
LVL 19

Accepted Solution

by:
elimesika earned 2000 total points
ID: 21841867
Threading.Sleep is OK if you are using pooling, that means that your process awakes  each X seconds and checks if the batch process is complete, is that the alternative you have found?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

609 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