Home » questions » How do I change to the Unit01 directory using a DOS prompt?

How do I change to the Unit01 directory using a DOS prompt?

2006-08-07 11:06:44, Category: Programming & Design
on a Lab exercise, this is the first instruction: 1. Open a DOS prompt and change to the Unit01 directory How do I do this? if i type in cd unit01, "the system cannot find the path specified" appears underneath it.

Answers

  1. msk

    On 2006-08-07 12:23:42


    if you have not been able to change directory yet: you have to know where the Unit01 directory is. It may or may not be at the root. The directory structure in DOS is a hierarchical tree sturcture. If unit01 is at the root level then "cd \unit01" would work. The "\" signifies the root. But if the directory is a sub-directory. e.g. it could be under the lessons directory and you would need to say "cd \lessons\unit01" to get there.
  2. griz803

    On 2006-08-08 09:50:22


    Well, as it has been said above, you need to know where it is. If you don't, and assuming you are working in a real DOS prompt environment, then you can use "dir C:\*.* /s/b/p" to find every file and directory on C: drive. They will scroll to fill the screen, then pause automatically until you hit a key. Once you've found it's location, use "cd .." to move up one directory level at a time until you're at the root level and the prompt shows "C:\>" or something close to that. Then simply type in "cd C:\[pathtodir]\[diryouneed]" and it should take you there. I hope this helps you out.
  3. Rox

    On 2006-08-07 11:10:24


    cd unit01 sirry should have given you full instructions. Start --> run--> type cmd. Hte you are in a DSO prompt. They type cd unit01 and you should be in that directory
  4. Coolkama

    On 2006-08-07 11:10:34


    click on "start" then Run type in CMD (if on win2000, XP else type COMMAND) click okay in the dos prompt... (assuming your directory is in the root of the c: drive) type in c: cd unit01 dir