Following exercises include to DOS and computer structure. If there is rush around the model-computer start doing exercises included to DOS. Exercises are ment to do by using Windows 2000 Command Prompt. So the surroundings isn`t real DOS- surroundings. All commands which work on DOS don´t work on Command Prompt.
Volume in drive C has no label. Volume Serial Number is 307D-5363 Directory of C:\WINNT 06.09.2000 13:03 <DIR> . 06.09.2000 13:03 <DIR> .. 31.07.2000 18:54 <DIR> Config 31.07.2000 18:53 <DIR> Connection Wizard 01.08.2000 11:14 <DIR> Corel 11.10.1999 04:01 41 984 CTREGRUN.EXE 15.08.2000 10:40 <DIR> Cursors 03.09.2000 12:35 <DIR> Debug 02.08.2000 08:33 0 netscape.INI 07.12.1999 15:00 50 960 NOTEPAD.EXE 13.09.2000 14:36 86 000 nsreg.dat 14.08.2000 14:38 15 256 ocgen.log 14.08.2000 14:38 1 098 ockodak.log 03.09.2000 12:44 881 ODBC.INI 01.08.2000 13:59 4 450 ODBCINST.INI 10.08.2000 09:36 2 553 OEWABLog.txt 31.07.2000 16:10 <DIR> Offline Web Pages
Find out which are subdirectory names and which are file names in previous list. What other information you can get of listing? What strange things you can find from listing? Ask explications from your exercise-tutor if needed.
Displays a list of files and subdirectories in a directory.
DIR [drive:][path][filename] [/P] [/W] [/D] [/A[[:]attributes]]
[/O[[:]sortorder]] [/T[[:]timefield]] [/S] [/B] [/L] [/N] [/X] [/C]
[drive:][path][filename]
Specifies drive, directory, and/or files to list.
/P Pauses after each screenful of information.
/W Uses wide list format.
/D Same as wide but files are list sorted by column.
/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date & time (earliest first)
G Group directories first - Prefix to reverse order
/T Controls which time field displayed or used for sorting
timefield C Creation
A Last Access
W Last Written
/S Displays files in specified directory and all subdirectories.
/B Uses bare format (no heading information or summary).
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/X This displays the short names generated for non-8dot3 file
names. The format is that of /N with the short name inserted
before the long name. If no short name is present, blanks are
displayed in its place.
/C Display the thousand separator in file sizes. This is the
default. Use /-C to disable display of separator.
Switches may be preset in the DIRCMD environment variable. Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
Conclude with the help of guide how you can stop directory listing of command
DIR after every screen? How you can get only directory names into
listing? Check it from your exercise-tutor.
COPY D:\OMAT\JUTTU.TXT A:\JUTTU.TXTWhen you copy files you can also change the file name. Next command will copy file JUTTU.TXT to other disk with other name.
COPY D:\OMAT\JUTTU.TXT A:\TOINENJUTTU.TXT
COPY .\OMAT\JUTTU.TXT .\DOKUT\JUTTU.TXTA change in the example's default directory causes also changes in the command. When you move to the OMAT-directory into directory structure with relative reference the copy command is like next.
COPY .\JUTTU.TXT ..\DOKUT\JUTTU.TXTCheck the success of copying by checking contents of directories. How the change of directory will change the copy command affliated with absolute reference. Check it from your exercise-tutor.
DIR
DIR *.TXT
DIR \*.TXT
DIR A:
DIR A:*.TXT /W
DIR \*.TXT /S
COPY VANHA.TXT UUSI.TXT
COPY VANHA.TXT UUSI.*
COPY VANHA.TXT \JUTUT
COPY VANHA.TXT \JUTUT\*.OLD
COPY *.TXT *.ASC
COPY A:\JUTTU.WP C:
COPY B:*.TXT
TYPE TARINA.TXT
MORE < TARINA.TXT
REN APILA.BMP KUKKA.BMP
MOVE KUVA.BMP \KARTAT\SUOMI
MOVE KUVA.BMP \KARTAT\MAA.BMP
TREE
TREE \ /F
TREE A:\
DEL *.TMP
DEL *.*
TARINA.TXT
KOE.1.DAT
UUSI
\A\B
D:/KURSSI/AINE.TXT
AINEISTO.DAT
:\JUTUT
/AUTO.DAT
.OSA
LUKU-2.W
#
A:
LUKU-2
C:\
E:KUORO\LAULU.C
\
B:\MATKA\KARTTA.BITMAP