Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual basic and DOS

Status
Not open for further replies.

alifyag

MIS
Apr 15, 2002
18
US
Hello,
The following code gets executed when i click on cmd_Execute


Private Sub cmdExecute_Click()
Shell ("perl gps_field_VB.pl " & sFile & " " & "ams.xls " & final_lat & " " & final_long)
End Sub

where sFile, final_lat, final_long all are defined.
The Dos window pops up in minimised mode and the perl script runs perfect.

However since the script takes some time to process I want to display a message in the status bar saying "File Processing" when the script is running and then display "File Processed" when the script has finished running.

How do I do it. I am using VB6 and I have Windows 98.

Thanks a ton.
Al
 
Explore the CreateProcess api: You have to create the process, hold onto the process handle, and loop (with Sleep in the loop) untill GetExitCodeProcess succeeds (which indicates the process has terminated, returning an exit code).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top