how can i delay the function
insword

until the the previous shell executes

VB Code:
  1. 'open command prompt to run Python script
  2.  Open Apath & "dos.bat" For Output As #1
  3.     Print #1, "cd C:\python24"
  4.     Print #1, "buckwalter2unicode.py -i C:\newfile.txt -o C:\newoutfile.txt -E mbcs"
  5.     Close #1
  6.     Shell Apath & "dos.bat"
  7.    
  8.  
  9.  insword