How to use CD/CHDIR Commands

CD/CHDIR


Purpose:Displays the name of or changes the current directory.

Syntax:CHDIR [/D] [drive:][path]
                CHDIR [..]
                CD [/D] [drive:][path]
                CD [..]

Prameters: /D change the current DRIVE in addition to changing folder.

                        ..   Specifies that you want to change to the parent directory.

Example: 

CD

                   C:\WINDOWS\system32>cd..

                    C:\Windows>cd..

                    C:\>cd users

                    C:\Users>cd administrator

                    C:\Users\Administrator>cd desktop

CHIDR

                  C:\WINDOWS\system32>chdir..
                    
                  C:\Windows>chdir..

                  C:\>chdir users

                  C:\Users>chdir administrator

                  C:\Users\Administrator>chdir desktop



                    


Comments

Popular posts from this blog

How to use DIR Command

How to Write Your First Batch Script Progarm

How to Set Date Using CMD