ireturn = objshell.Run( "cmd /c dir c:\ > c:\temp\abc.txt" ,0, True)
ireturn = objshell.Run( "cmd /c dir d:\ >> c:\temp\abc.txt" ,0, False)
The first instance must wait until it is complete or the second instance
will overwrite the text file instead of amending it. The Window Style
must be specifically set to "hidden" (0), or a command box will pop up
momentarily.
--
Crash
~ W. Edwards Deming ~