lylyvn
asked on
cannot execute cmd chdir
Dear all,
I tried to run cmd command chdir d:\, but nothing happened (could not change to D drive)
Please let me know why.
Many thanks
Regards,
LL
I tried to run cmd command chdir d:\, but nothing happened (could not change to D drive)
Please let me know why.
Many thanks
Regards,
LL
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
Yes I have tried chdir d:, chdir d:\ ----- but could not go to the D drive
Sorry I don't understand Taz' reply.
All I want is to access a folder in D drive.
Many thanks.
LL
Yes I have tried chdir d:, chdir d:\ ----- but could not go to the D drive
Sorry I don't understand Taz' reply.
All I want is to access a folder in D drive.
Many thanks.
LL
I assume we are talking about a windows machine. If you go to my computer, do you see D drive?
To access D: you simply type:
D:
You can also type:
chdir /d d:\ or cd /d d:\
HTH
D:
You can also type:
chdir /d d:\ or cd /d d:\
HTH
CHDIR or CD only changes directory on the Current Drive; the /d forces it to change the specified drive and directory...
ASKER
Thank you very much. I will try it tomorrow.
There is another alternative:
Try using
pushd d:\
This will change drive and path. Additional you can use popd to return to the last path (prior using pushd) and you're also able to change to UNC locations (e.g. pushd \\server\share).
Try using
pushd d:\
This will change drive and path. Additional you can use popd to return to the last path (prior using pushd) and you're also able to change to UNC locations (e.g. pushd \\server\share).
ASKER
Thank you very much for all your help. Yes it worked with D: or cd /d d:\
Thanks for the share of the points lylyvn...
chdir /d D:\