Vous pouvez utiliser un chemin absolu ou un chemin relatif. J'expliquerai les deux, et j'expliquerai également comment y arriver si votre répertoire de travail actuel se trouve sur un lecteur distinct. Dans les exemples, je vais inclure le "prompt" pour le contexte. Les commandes réelles viennent après le ">" (signe plus grand que). J'utiliserai "_" (trait de soulignement) pour indiquer le curseur à l'invite après que vous ayez fini d'exécuter les commandes.
If you begin the path with a backslash, it is considered an “absolute” path (relative to the top level, which is called the “root directory”), so the following command will do what you want:
- C:WindowsSytem32> cd Users
- C:Users> _
If you omit the backslash, it is considered a relative path, so the following will try to go to C:WindowsSytem32Users:
- C:WindowsSytem32> cd Users
- The system cannot find the path specified.
- C:WindowsSytem32> _
You can also traverse upward in the directory structure with a relative path by using .. (which means “parent directory”). In this case, you are two directories deep, so you will need to go up two directories before descending into the Users directory. You could do that with the following command:
- C:WindowsSystem32> cd ....Users
- C:Users> _
If your current working directory is on another drive (drive D, for example), you will also need to change to the target drive by typing the drive letter followed by a colon. For example:
- D:Documents> c:
- C:WindowsSystem32> cd Users
- C:Users> _