|
Answer» When I write a COMAND DIR inside existing folder, I receive a list of folders, and always at the beginning there are two of them: . .. all others.
Maybe it is basic question but what mean these "." and ".."?
Thanks
The . (dot) directory means "current directory". The .. (double dot) directory means "parent directory" or "go back one directory level" (kind of like the "up" button with the green ARROW pointing up over the yellow folder in the Windows Explorer or My Computer toolbar).
You can use them with commands for many purposes. For example, let's say you are in the directory "C:\Documents and Settings\kkkkk\My Documents". If you want to copy everything in your current directory to "C:\Documents and Settings\kkkkk\Backup" then you could use the command:
CODE: [Select]XCOPY . ..\Backup\which is the same as (but a LOT shorter and quicker than):
Code: [Select]xcopy "C:\Documents and Settings\kkkkk\My Documents\*.*" "C:\Documents and Settings\kkkkk\Backup\"Nice one, GGThanks!
|