Windows 10 Command Line Examples


Here is an example of a few commands at the command line of Windows 10. This post is a follow-up to the post Windows 10 Command Line Introduction. The example below shows you how to change directories, make a directory and list the contents in a directory. To run a command line in Windows 10, right-click the Start button and click Run, type cmd and then click the OK button.

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\micha>cd \

C:\>mkdir test1

C:\>cd test1

C:\test1>mkdir myfiles

C:\test1>cd myfiles

C:\test1\myfiles>cd ..

C:\test1>mkdir morefiles

C:\test1>dir
 Volume in drive C is OS
 Volume Serial Number is 56E4-E461

 Directory of C:\test1

2016-10-23  01:32 PM    <DIR>          .
2016-10-23  01:32 PM    <DIR>          ..
2016-10-23  01:32 PM    <DIR>          morefiles
2016-10-23  01:32 PM    <DIR>          myfiles
               0 File(s)              0 bytes
               4 Dir(s)  540,699,234,304 bytes free

C:\test1>

Leave a comment

Your email address will not be published. Required fields are marked *