Re: run Shell with /wait
- From: "Kevin Witty" <kdw@xxxxxxxxxxxxxxxx>
- Date: Fri, 13 May 2005 22:53:01 -0700
Allen -
Thanks very much for your response. I know you've been one of the Most
Valuable Players here for a long time, and I certainly appreciate your help
But really, isn't it time we just acknowledged that the Emperor has no
clothes? Why the hell shouldn't have the MS designers have recognized that
this is something that people want to do, and have built it in, instead of
having to have us jump through all the hoops we have to? I just heard, for
example. that vb.net has no Left or Right function. Have their designers
never had to develop an app? It's a typical example of why people like me
are gettting disgusted with MS. There are a thousand examples of how MS has
blown it in the past 30 years, changing things which worked in W/2k to things
which don't work in W/XP.
Believe me, this is not a diatribe at you, but because I think you may have
MS's ears, a diatribe to them. If they'd written their software right in the
first place, a lot of these support forums wouldn't be necessary. And it's
not because they're short of cash, they're just short of user wisdom, and
long on techs. Hey, ask anyone who deals with Word!
A thoroughly disgusted with MS, and eternally grateful to you..
Kevin (Who promises he won't write any more diatribes like this to you.)
"Allen Browne" wrote:
> See:
> API: Shell and Wait
> at:
> http://www.mvps.org/access/api/api0004.htm
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia.
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Kevin Witty" <kdw@xxxxxxxxxxxxxxxx> wrote in message
> news:566ABDCD-C876-41C6-9607-8DFE773A8D1E@xxxxxxxxxxxxxxxx
> > I'm creating a cmd file I want to run with Shell which copies an existing
> > file, performs an operation on it which will change the file size, and
> > then
> > deletes the original and saves the new file back with the old file name.
> > After the cmd file finishes, I want to report the length of the new file
> > size
> > using FileLen.
> >
> > By default, Shell executes asynchronously, which means my VBA code which
> > runs after the Shell statement and tries to report the length of the file
> > created using FileLen, fails. It reports the size of the original file.
> >
> > I've tried using /wait in the cmd file which runs, but that hasn't helped.
> >
> > Is there a way to make Shell Wait until the operation it started finishes,
> > and then proceed to the rest of the VBA code?
> >
> > Thanks,
> >
> > Kevin
>
>
>
.
- Follow-Ups:
- Re: run Shell with /wait
- From: Allen Browne
- Re: run Shell with /wait
- References:
- run Shell with /wait
- From: Kevin Witty
- Re: run Shell with /wait
- From: Allen Browne
- run Shell with /wait
- Prev by Date: Re: Index
- Next by Date: Re: run Shell with /wait
- Previous by thread: Re: run Shell with /wait
- Next by thread: Re: run Shell with /wait
- Index(es):
Relevant Pages
|