How to redirect dir /b to cd?

how can i redirect the output of dir /b to cd?
for example i have one directory, i want to cd to into that directory by somehow pipeing the dir /b command into it. is it possible?
1 answer Last reply
More about redirect
  1. rictional said:
    how can i redirect the output of dir /b to cd?
    for example i have one directory, i want to cd to into that directory by somehow pipeing the dir /b command into it. is it possible?

    dir /b > e:myfile.txt

    (my flashdrive is E: in command prompt)
Ask a new question

Read More

CD-Rom Command Prompt Windows Vista