Tuesday 31 May 2011

Admin: Change drive and directory in CMD

Ok, so its not SQL based but one of the things I ALWAYS forget is the syntax to move quickly to a directory on a different drive when using the command prompt.

If i'm on c:\Dog and want to move to d:\Cat then simply issuing the following command doesn't cut the mustard:

C:\Dog\cd d:\Cat

Instead, I need to issue it with the /D command

C:\Dog\cd /D d:\Cat

No comments:

Post a Comment

/* add this crazy stuff in so i can use syntax highlighter