Shell Synchornous?

R

Rwostbrock

"....By default, the Shell function runs other programs asynchronously. This
means that a program started with Shell might not finish executing before the
statements following the Shell function are executed...."

Is there a way to force the shell function to run in a synchronous manner?
I want to use the shell function to execute the dos command xcacls. The time
for the command to complete varies with every run and needs to be finished
before the next vba line executes. Therefore, a simple wait XXX seconds
routine will not work for me.

Rich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top