Example

This example shows how to shell to a DOS session from Windows and to use the DOS dir command to display a list of files, in chronological order, one screen at a time:

Sub ShellDemo ()

 Session.Shell "dir c:\mail /od /p", "", rcNormal

End Sub