Вы находитесь на странице: 1из 5

Advance DOS Commands

Copy – Used to copy files to a specific location.


Syntax “Copy” source i.e. F:\Win98\*.* destination i.e. d:\win98

Del – Used to delete files from a specific location.


Syntax “Del” source i.e. c:\win98\*.*

Xcopy – Used to copy files also but can create directories.


Syntax “Xcopy” source i.e. “F:\Win98\*.*” destination i.e. “d:\win98”

MD – Used to Make Directory


Syntax “MD” i.e. Jose

RD – Used to Remove Directory


Syntax “RD” i.e. Ron

Deltree – Deletes a directory and all the subdirectories and files in it.
To delete one or more files and directories:
DELTREE [/Y] [drive:] path [[drive:] path [...]]

/Y Suppresses prompting to confirm you want to delete


the subdirectory.
[Drive:]
path specifies the name of the directory you want to delete.

Note: Use DELTREE cautiously. Every file and subdirectory within the
specified directory will be deleted.

Edit – Used to create files


. txt – Text files
.bat – Batch Files
Type – Used to display contents of text files.

CD – Used to Change Directory


Syntax “CD” i.e. Larry

Fdisk – Used to set partitions on your hard drive


Syntax “Fdisk” – There must be at least one partition on a hard drive.

Format – Used to format a hard drive


Syntax “Format” i.e. C:
You can also use switches such as “/s” make the drive bootable “/q” quick format

Program files - .com, .sys, .exe


Dir – Used to list files in specific location
Syntax “Dir”

Type To

/w Width
/p Pause after screenful of information
/s Display files and subdirectories.
/o Displays files in sorted order

MEM – Displays the amount of used and free memory in your system

Memory Type Total Used Free


---------------- -------- -------- --------
Conventional 640K 72K 568K
Upper 0K 0K 0K
Reserved 384K 384K 0K
Extended (XMS) 15,360K ? 63,016K
---------------- -------- -------- --------
Total memory 16,384K ? 63,584K

Total under 1 MB 640K 72K 568K

Total Expanded (EMS) 62M (65,241,088 bytes)


Free Expanded (EMS) 16M (16,777,216 bytes)

Largest executable program size 568K (582,112 bytes)


Largest free upper memory block 0K (0 bytes)
MS-DOS is resident in the high memory area.

High Memory is the first 64k of Extended Memory.

Defrag - A file that is too large for a single location on a disk is fragmented and stored in
any free spaces on the disk. You can use fragmented files, but your computer takes longer
to access them. Disk Defragmenter rearranges the files and free space on your disk. Files
open more quickly because they are stored in adjacent units and free space is
consolidated.
Scandisk - To check for disk errors when your computer starts
Syntax – “Scandisk x:” also you may include any switches. /?

Type To

x: Specify the drive you want to check.


(substitute the drive letter for x)
/a Check all your local hard disks.
/n Start and quit Scandisk automatically.
/p Prevent Scandisk from correcting any errors it
finds.

Batch Files

Once you have mastered these simple DOS commands you will be able to store certain
commands you use repetitively in a file/macro called a “Batch File”. A batch file is a
Macro that runs commands within a file. Use the text editor to create or change a batch
file. The first command in the batch file should be “@echo off”. This command turns of
echo while executing all commands in the batch file. In order for a batch file to execute
in must have an extension of .bat.
DOS Networking Commands

Ping – TCP/IP utility used to determine if a remoter machine is reachable using TCP/IP
Protocol. Syntax “Ping” IP Address i.e. 192.168.1.37
Loop-back address is 127.0.0.1 used to check local TCP/IP stack.

Tracert – TCP/IP utility used to show the route a packet takes to get to its destination.

NBTSTAT – Utility to determine the connections open on a machine using


NETBIOS/IP. Is case sensitive. NETBIOS creates and manages connections based on
the names of the computers on the network.

NETSTAT – Utility for determining which TCP/IP connections a machine currently has
open. Used to troubleshoot TCP/IP connectivity problems. Check for open ports.

Net Commands

NET CONFIG Displays your current workgroup settings.


NET DIAG Runs the Microsoft Network Diagnostics program to
display diagnostic information about your network.
NET HELP Provides information about commands and
error messages.
NET INIT Loads protocol and network-adapter drivers without
binding them to Protocol Manager.
NET LOGOFF Breaks the connection between your computer and
the shared resources to which it is connected.
NET LOGON Identifies you as a member of a workgroup.
NET PASSWORD Changes your logon password.
NET PRINT Displays information about print queues
and controls print jobs.
NET START Starts services.
NET STOP Stops services.
NET TIME Displays the time on or synchronizes your computer's
clock with the clock on a Microsoft Windows for
Workgroups, Windows NT, Windows 95, or NetWare time server.
NET USE Connects to or disconnects from a shared
resource or displays information about
connections.
NET VER Displays the type and version number of the
workgroup redirector you are using.
NET VIEW Displays a list of computers that share
resources or a list of shared resources
on a specific computer.

IPCONFIG – Win NT utility to determine TCP/IP settings.

WINIPCFG – Win 95/98 utility to determine TCP/IP settings.


Projects

Work on DOS Lab, ask the Lab instructor print you out the DOS lab and give you a 3 1/4
floppy diskette.

There will be a Test on DOS Wednesday (Test will be a GRADED)

Practice your DOS commands AREAS NEEDED to STUDY format, fdisk, networking
DOS commands.

Вам также может понравиться