o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

ID's -

Hey!

How can I know when a Ms-DOS Application launch in by the shell command is done? In this example, I want the program PURGE accomplich is job then the will complete the FOR...NEXT instructions.

Ex:

[code]
Private sub CmdOk_Click()
for i = 0 to list1.listcount - 1
cmd$ = "PURGE /DATA "+chr$(34)+list1.list(i)+chr$(34)
shell cmd, vbhide
next i
msgbox "Done.", vbinformations
end sub


------------
ICQ: 65287451
E-MAIL: sx3k@crosswinds.net
Homepage: http://www.sx3k.le-site.net
AIM: MBR5520
Running VB5 Enterprise Edition Service Pack 2
------------