Sean, Check out http://www.planetsourcecode.com It's in there somewhere. If you can't find it let me know and I'll see if I can dig it out of one of my programs. Joe ----- Original Message ----- From: "Sean Breheny" To: Sent: Friday, April 06, 2001 6:46 PM Subject: [OT]: Shelling in VB > Hi everyone, > > Once again, I have a Visual Basic question and you are the most > knowledgeable group I know on this subject. > > I'm trying to run an external program from a VB program (the external > program is actually XXCOPY, as mentioned on this list not long ago, > because I am using it for backing stuff up over a network). It is working > well except that I can't find a way to make it wait for the first process > to finish before spawning a new one (so, if I want to sequentially call > XXCOPY 10 times, I instead get 10 copies running simultaneously). > > I could probaby do some kind of trick where I have XXCOP log it's output > to a file and then keep checking the file for the last line to be > written, but I thought that possibly VB would have a built-in way of > doing this (I'm currently using the SHELL command and that appears to not > have any option like this). > > Thanks, > > Sean > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body