


     CD(V1.3 in C:) (2.x/3.x Internal)



     NAME
          CD - Report or change the current directory.

     SYNOPSIS
          CD Dir ROOT

     DESCRIPTION
            CD when given a valid directory name, makes that 
        directory the current or default working directory. To 
        display the current directory, type CD without any 
        arguments.

            It's also supplied with the switch ROOT. By using 
        ROOT in place of an actual directory name, an assignment 
        to the root of the filing system will be made. This is 
        the device you booted from, rather than a specific disk.  
        For example, if you booted from Drive Df0:, CD ROOT will 
        permanently assign your directory to any disk in drive 
        Df0:.

            It also has a simple pattern matching capability.  
        You may use a wildcard specification as an argument to 
        CD, CD will make the first directory it finds that 
        matches the pattern the current directory. Pattern 
        matching is utilized with the Amiga wildcards).

            You can also move up one directory by using multiple 
        slashes (/). For instance, if the current directory is: 
        Work:Art/AGA by typing CD // you will change to the Work: 
        directory. 

            2.x/3.x only: You can also change directories by 
        simply typing the path name at the shell prompt. The CD 
        command is only needed if there are any spaces in the 
        path name. In this case you must place the entire path in 
        quotes.

            NB: AmigaDOS handles default drives unlike any other 
        personal computer. Let's say you insert a disk named 
        Stuff: in df0: and type CD df0:. Then, you remove the 
        disk and insert a disk named Things: and type dir df0:, 
        you will be requested to insert Stuff: in df0:.  To get 
        around this, merely type Cd df0: whenever a new disk is 
        inserted. This makes your Amiga read the new volume label 
        and it forgets all about the old disk.

         

      EXAMPLE
          1. To change directory to df0:libs

              CD DF0:LIBS
          
          2. To report current directory

              CD 


          3. To make any disk in Drive 0 the current directory

               CD ROOT  


	      4. To change back to your root directory (2.x/3/x only)

               CD :      


          5. To move back up two directories (2.x/3.x only)    

               CD //  
  


     SEE ALSO
          Prompt
