Solved

Detect Steps of a Application

Posted on 2008-06-21
5
256 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 500 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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

724 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