1.

Solve : dot and dot-dot?

Answer»

Good evening everybody..

MAY I ask for HELP, please!

What is the benefit of the "dot" and "dot-dot" in dos?
(“Dot" and "dot-dot" representing the current and parent directories). How can we use them?

best regards,
oxygen
dot and dot-dot are just shorthand notation for navigating around a DIRECTORY structure. They can save time in the CMD or COMMAND window. They are also used in batch files and scripts especially installers and applications that depend a set directory structure.

Did you have a specific question?

Hope this helps. Thanks for replying Sidewinder..

Actually I don't have a specific question, but I need an example using the dot and dot-dot! - if possible -

"I do one thing at a time, I do it very well, and then I MOVE on" .. this nice signature helped me when I read it the first time, THANK YOU!
Examples:

cd.. move up one directory
cd. does nothing; LEAVES you in same directory

call ..\dirB\program.exe - move up one dir then run program from DirB

Relative directory adressing is used by some installers; the user picks the install directory and then as the application is installed, the directories created are relative to that one.

Not used much in Windows, since technically it's the CMD or COMMAND processor that's logged into a directory not Windows.

Hope this helps. THANK YOU very much..
It was really helpful sorry cannot help. but if anyone else can I need it too



Discussion

No Comment Found