Prior to learning GDAL or scripting it is important to learn the Command Line and how to use commands from the command prompt.
1. Now go to the newly created directory "John" by typing: cd John <Enter>
cd John <Enter>
cd means "change directory". You can see that the command prompt has changed to C:\JOHN
Note that DOS is
not case sensitive (it interprets upper and lowercase in a similar way), so you
could also have typed cd
the contents of the directory John (use the command that you've learned before).
you'll see that the directory is not empty. There are two directories, namely . and ..
directory is empty, but it also shows the relative paths:
. means "current directory"
cd .. <ENTER>
cd . <ENTER>
cd .\John <ENTER>
cd John <ENTER>
cd C:\John <ENTER>
cd \ <ENTER>
10. Go back to the directory called John. You can
choose if you want to use the relative or absolute path
11. Type cd ..\Peter <ENTER>
cd ..\Peter <ENTER>
at the prompt and explain what this command did.
ways of changing directories are equivalent. Why bother than? Well, if you move
your files that are organized in directories and subdirecties to another drive
(e.g. drive D), than your absolute paths will not work, while your relative
paths will still refer to the same locations. This is specifically important
when writing scripts, which we'll do later.