dos_dir_test
DOS_DIR_TEST
Demonstrate a simple use of the "dos" command,
which allows MATLAB to invoke MS/DOS operating system commands.
Command status was 0
Command output was Volume in drive C has no label.
Volume Serial Number is D0EA-52F8
Directory of C:\Documents and Settings\burkardt\Desktop\MATLAB\matlab_os
07/19/2006 11:29 AM
.
07/19/2006 11:29 AM ..
07/19/2006 11:24 AM 639 bang_who_test.m
07/19/2006 11:24 AM 1,381 dos_dir_test.m
07/19/2006 11:24 AM 838 system_more_test.m
07/19/2006 11:24 AM 1,119 unix_head_test.m
4 File(s) 3,977 bytes
2 Dir(s) 59,933,659,136 bytes free
Repeat the command, but add the -ECHO option.
Volume in drive C has no label.
Volume Serial Number is D0EA-52F8
Directory of C:\Documents and Settings\burkardt\Desktop\MATLAB\matlab_os
07/19/2006 11:29 AM .
07/19/2006 11:29 AM ..
07/19/2006 11:24 AM 639 bang_who_test.m
07/19/2006 11:24 AM 1,381 dos_dir_test.m
07/19/2006 11:24 AM 838 system_more_test.m
07/19/2006 11:24 AM 1,119 unix_head_test.m
4 File(s) 3,977 bytes
2 Dir(s) 59,933,659,136 bytes free
Command status was 0
Command output was Volume in drive C has no label.
Volume Serial Number is D0EA-52F8
Directory of C:\Documents and Settings\burkardt\Desktop\MATLAB\matlab_os
07/19/2006 11:29 AM .
07/19/2006 11:29 AM ..
07/19/2006 11:24 AM 639 bang_who_test.m
07/19/2006 11:24 AM 1,381 dos_dir_test.m
07/19/2006 11:24 AM 838 system_more_test.m
07/19/2006 11:24 AM 1,119 unix_head_test.m
4 File(s) 3,977 bytes
2 Dir(s) 59,933,659,136 bytes free
Now repeat command, but with a final ampersnand.
Command status was 0
Command output was
DOS_DIR_TEST:
Normal end of execution.