I would rather use SendMessage as you suggested, but I couldn't figure out the window handle for the command line window. I thought this would get me the handle, but it didn't...

vb Code:
  1. pID = Shell("cmd /c pause", vbNormalFocus)
  2.    pHandle = OpenProcess(&H100000, True, pID)

Any ideas on how I can get the handle of the command line window?