[Toc][Index]

CDD - Change the current drive and directory

 
 Purpose:    Change the current disk drive and directory. 
             
 Format:     CDD [/A /N /S[drive ...]] [path | - ] 
             
             path :  The name of the directory (or drive and directory) to 
             change to. 
             drive :  A drive or list of drives to include in the extended 
             directory search database. 
             
             /A(ll drives)                   /N(o extended search) 
             /S(earch tree)                  
 
 See also:  CD, MD, PUSHD, RD, CDPATH, and Directory Navigation. 
 Usage 
 CDD is similar to the CD command, except that it also changes the default 
 disk drive if one is specified.  CDD will change to the directory and 
 drive you name.  To change from the root directory on drive A to the 
 subdirectory C:\WP: 

 
         [a:\] cdd c:\wp
         [c:\wp]
 
 
 You can change to the parent directory with CDD ..; you can also go up 
 one additional directory level with each additional [.].  For example, 
 CDD .... will go up three levels in the directory tree (see Extended 
 Parent Directory Names). 
 CDD can also change to a network drive and directory specified with a UNC 
 name (see File Systems for more information about network directories). 
 When you use CDD to change to a directory on an HPFS drive, you must 
 quote the path name if it contains whitespace or special characters.  See 
 File Names and File Systems for additional details. 
 If CDD cannot change to the directory you have specified it will attempt 
 to search the CDPATH and the extended directory search database in order 
 to find a matching directory and switch to it.  You can also use 
 wildcards in the path to force an extended directory search.  See the 
 section on Directory Navigation for complete details on these and other 
 directory navigation features.  To disable extended directory searches 
 for the current command (e.g. in a batch file) see the /N option below. 
 CDD saves the current drive and directory before changing to a new 
 directory.  You can switch back to the previous drive and directory by 
 entering CDD - (there must be a space between the CDD command and the 
 hyphen).  You can switch back and forth between two drives and 
 directories by repeatedly entering CDD -.  The saved directory is the 
 same for both the CD and CDD commands.  Drive changes and automatic 
 directory changes also modify the saved directory, so you can use CDD - 
 to return to a directory that you exited with a drive change or an 
 automatic directory change. 
 Directory changes made with CDD are also recorded in the directory 
 history list and can be displayed in the directory history window, which 
 allows you to return quickly to a recently-used directory. 
 Options 
    /A:     (All drives) When CDD is used with this option, it displays 
            the current directory on all drives from C: to the last drive 
            in the system.  You cannot move to a new drive and directory 
            and use /A in the same command. 
    /N:     (No extended search) This option prevents CD from searching 
            the extended directory search database or displaying the 
            related popup window.  If /N is used and the specified 
            directory is not found via other methods (i.e. without an 
            extended search), CD will display an error. This option is 
            primarily intended for use in batch files where you do not 
            want CD to use "fuzzy" directory searching or display an 
            extended search popup window. 
    /S:     (Search tree) Builds or rebuilds the Extended Directory Search 
            database, JPSTREE.IDX.  You cannot move to a new drive and 
            directory and use /S in the same command. 
            To include all local hard drives in the database use the 
            command: 

            
                    cdd /s
            
            
            To limit or add to the list of drives included in the 
            database, list the drives and network volume names after the 
            /S switch.  For example, to include drives C, D, E, and the 
            network volume \\server\dir1 in the database, use this 
            command: 

            
                    cdd /s cde \\server\dir1
            
            
            All non-hidden directories on the listed drives will be 
            indexed; you cannot restrict the database to certain 
            directories within a drive.  Each time you use /S, everything 
            in the previous directory database is replaced by the new 
            database that is created. 
 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs