Saturday 4 June 2011

How to change the directory in the command prompt if the directory's name is too long and has a period (.)

for example, how to change to this directory %26quot;jdk1.4.0_03%26quot;


if im in the root directory and jdk1.4.0_03 is at c:\jdk1.4.0_03.|||type a few words of the file/folder name and press tab, the rest of file name will be shown, if it%26#039;s not what you want, press tab again until u find it .|||At a DOS command prompt you should be able to enter the name of the directory as you have it listed.





If you%26#039;re at the root of C:, then


cd jdk1.4.0_03





..or





cd \jdk1.4.0_03





..or





cd %26quot;jdk1.4.0_03%26quot;








The only time that I know of that you would not be able to do this is if there is a filename at the root with that name. In which case you would get an error that reads, %26quot;The directory name is invalid.%26quot; when trying to change into the directory.