Shell finished

M

MarkS

Hi,
I use this to get some file data
' Get directory,filename,date and size
x = Shell("cmd.exe /c dir /Tw/S " & sPath & "*." & LCase(sFileExtension) &
" > " & ThisWorkbook.Path & "\Directory.csv", 1)

what i need to do is now wait until it is finished before the rest of the
code runs

Thanks MarkS
 

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

Similar Threads


Top