Puoi usare un percorso assoluto o un percorso relativo. Spiegherò entrambi, e spiegherò anche come arrivarci se la vostra directory di lavoro corrente è su un'unità separata. Negli esempi, includerò il "prompt" per il contesto. I comandi veri e propri vengono dopo il ">" (segno di maggiore). Userò "_" (trattino basso) per indicare il cursore al prompt dopo aver finito di eseguire i comandi.
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> _