While working in command prompt, many times we face a situation where we have to change to a directory on another drive. For example currently I am working in c:\users\techblogger folder and if I want to change to the directory e:\data\documents\ normally what I do is changing to the e: drive first and then doing ‘cd’ to the data\documents directory.
c:\users\techblogger>
c:\users\techblogger>e:
c:\users\techblogger>e:
e:\>cd data\documents
Instead of executing two commands we can do the same thing in a single command by using /d switch with cd command.
c:\users\techblogger>cd /d e:\data\documents
e:\data\documents>