EasyManua.ls Logo

Siemens PGC 302 Edition II - Working with Subdirectories; Files; Path

Siemens PGC 302 Edition II
248 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Working with subdirectories
You must be acquainted with a number of functions so
that you can organize your files meaningfully in hierar-
chical directories:
Generation of subdirectories
Deletion of subdirectories
Changing from root directory to a subdirectory.
Generation of subdirectories
If you enter the command
MD CUMOL
in the directory
c:\meth, for example, you generate a sub-subdirectory
cumol in the subdirectory meth. The complete name of
this sub-subdirectory is c:\meth\cumol.
Deletion of subdirectories
If you enter the command
RD CUMOL
in the directory
c:\meth, for example, you delete the subdirectory
cumol. Prerequisite: no files or further subdirectories
may be present in the directory cumol. You are thus
prevented from deleting files by mistake which you
have forgotten.
Changing directories
If you enter the command
CD CUMOL
in the subdirectory
c:\meth, for example, you change to the sub-subdirec-
tory cumol. Please note:
You can change forwards e.g. from the root direc-
tory to the subdirectory c:\meth using
CD METH
or
CD \METH
.
You can change backwards e.g. from the sub-subdi-
rectory c:\meth\cumol to the subdirectory c:\meth
using
CD \METH
only.
You must always enter the backslash ("\") if you wish
to change backwards or across from subdirectories. Be-
cause the backslash is difficult to find on some com-
puters, here is a trick: you can also move backwards by
one subdirectory at a time using the command
CD..
!
You can omit the backslash in the forward direction.
Example: you can change from the directory
c:\meth\cumol to the directory c:\pgcarch\gc0102 if
you enter:
c:\meth\cumol>
cd..
c:\meth>
cd..
c:\>
cd pgcarch
c:\pgcarch>
cd gc0102
c:\pgcarch\gc0102>
NOTE:
The bold
MS-DOS
prompt in the above example shows which
directory you are currently in. This only functions if the com-
mand
prompt $p$g
is entered in the file autoexec.bat!
Files
Files are present in all directories and have names such
as e.g. konfig.exe. The dot may be preceded by up to
eight letters. These help the user to find his file.
The dot can be followed by up to three letters which
identify the extension. These letters are used to classify
the files. Certain extensions have a fixed meaning:
.
EXE
These are programs which can be called by typing their
name.
Example:
konfig.exe
can be started by typing: konfig
[
Return
] .
.
COM
These are programs similar to the
.exe
files.
.
BAT
These are files in which commands are stored which
would otherwise have to be entered at the DOS level
itself.
Example:
A file
k.bat
could contain the following
commands:
cd \konfig
konfig
cd \bedi
cls
The file k.bat is started by typing:
k
[
Return
]. This
results in starting of the configuration software
Path
Files can only be reached using their names if they are
present in the current directory. For example, if you are
in the directory c:\ and wish to start the file bedi.bat in
the directory \bedi, you must either first change to the
directory \bedi or enter the name with its path:
\bedi\bedi. Examples:
c:\
This is the root directory
\bedi
This is a subdirectory, but could also
be the file
bedi
in the main directory.
\bedi\koli.dbf
This is a file in the subdirectory
The software
2SOFTWAR.CHP, Stand Dezember 22, 1999
7

Table of Contents

Related product manuals