Advertisement
KimKat

Info on the CD command and Long File Names

Feb 9th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. http://support.microsoft.com/kb/142982
  2.  
  3. They do not provide info regarding how to determine and access folders via this method and such. I posted feedback to help them write more about this, so far I'm one of the few who knows about this kind of confusing way to navigate. Well here it begins I will explain how to do this. But first I will tell you how to use the "cd" command. If you already know then skip the "cd" command part to read about the Long File Names.
  4.  
  5. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ About the "cd" command ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  6.  
  7. To change directories, we all know about the "cd" command which is not your typical Compact Disc. All it does is actually changing directory to whatever is given as a argument.
  8.  
  9. cd \
  10. The command here will tell you to go back all the way to the root path for the current drive.
  11.  
  12. "cd.." or even "cd .."
  13. These commands work on Windows OS to navigate back one directory. You can't use the first one on a Unix system for some reason however the last one works just fine.
  14.  
  15. cd ../../../../
  16. This command can make you go back 3 directories. Just count the numbers of slashes to quickly determine how many times you go through directories instead of counting the periods which is twice as many directories.
  17.  
  18. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ About Long File Names ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19. You have the basic knowledge of the "cd" command now already. Let's go through this part that I ment to go through with.
  20.  
  21. cd %systemdrive%\Progra~1\Micros~1\Window~1\StartM~1\Progra~1\Startu~1\
  22. The above command wouldn't work, so I took some time and managed to resolve the issue with this command.
  23.  
  24. cd %systemdrive%\Progra~3\Microsoft\Windows\StartM~1\Programs\Startup\
  25. Which haphazardly translated into the following line below by default.
  26.  
  27. C:\PROGRA~3\Microsoft\Windows\STARTM~1\Programs\Startup>
  28.  
  29. This file path is normally this as shown below.
  30. C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
  31.  
  32. Quote from Microsoft.
  33. "Windows truncates the file name, if necessary, to six characters and appends a tilde (~) and a digit. For example, each unique file name created ends with "~1." Duplicate file names end with "~2," "~3," and so on."
  34.  
  35. Conclusion.
  36. The end result happened out of luck as I wouldn't know how to use the different tilde techniques "~1", "~2", "~3" when in use with paths in a correct manner. I provided this info to make it easier for other users to navigate on a Windows OS. I'm especially talking about the users on Unix and Mac systems if they ever needed to use a Windows PC.
  37.  
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement