Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the DOS command

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces "what is DOS command". In daily operation, I believe many people have doubts about what is DOS command. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "what is DOS command"! Next, please follow the editor to study!

1. The format of the DIR command:

Dir [D:] [PATH] [NAME] [[/ A] [: attrib]] [/ o: [sorted] [/ s] [/ b] [/ l] [/ c [h]

(1) dir / a:attrib contains all files (system files) by default. Implied file)

Attrib [:] [hripwh] shows only implied files or non-implicit files.

[rpumpr] shows only read-only files or non-read-only files

Show only system files or non-system files

[AAGUAUMUA] displays only files to be archived or non-archived

(2) / o [:] sorted: default is in full alphabetical order, with subdirectories displayed in front of the file

/ o [nhammern]: display in alphabetical order or filename order / reverse

[eswab]: display in alphabetical order / reverse by extension

[dpummeld]: display in chronological / reverse order

[shands]: display by size from big to small or / in reverse

[gpummelg]: by subdirectory before file or file before subdirectory

(3) / s parameter: lists all files in the current directory and its subdirectories

Column name: dir / s/a/o:n c:\ > PRN

Print out all subdirectories and files on disk c according to their affiliation and alphabetical order of subdirectories and files

(4) / B parameter: only the file name and extension will be displayed

(5) / L parameter: all files or subdirectories will be listed in lowercase letters

Training:

Dir / a column all files in the current directory (including implied and system files)

Dir / ah column implied files (including subdirectories (implied) dir / Amurh

Dir / as column system file dir / Amurs

Dir / ad column subdirectory dir / Amurd

Dir / o in alphabetical order

Dir / B displays only the file name and extension

Attrib [+ r |-r] [+ a |-a] [+ s |-s] [+ h |-h] [d:] [name] [/ s]

The default attrib name displays the (file) properties of the file

Attrib io.sys (or subdirectory)

Shr c:\ io.sys is specified as the system (s) implied (h) read-only (r) file

You can also attrib * .sys to display file properties with the extension sys

The parameter [+ r |-r] sets or removes the read-only attribute of the file

[+ a |-a] set or unarchive the file attribute

[+ h |-h] set or remove the implied attribute of the file (especially for subdirectories)

The / s parameter takes effect on all files in the current and current subdirectories

Can be used to find files.

Example:

Document properties of the attrib news86 column news86

Attrib + r report.txt is set to read-only attrib-s-h record.txt

Attrib + a _

Attrib-an a:*.bak

Xcopy a: B: / a copy all the files marked as "archived" on disk A to disk B.

Xcopy a: B: / m copy all the files on disk A to disk B and remove the archive attribute

3. Cd introduction: cd... Return to the upper secondary directory. Represents the current directory "." Represents the parent directory

Cd..\. Return to the parent directory (ancestral directory) of the parent directory

Cd A:\ change the current directory of disk A to the root directory

Cd A:\ xx change the current directory of disk A to the subdirectory xx

Cd.\ 98 return to the parent directory first, and then enter the 98 subdirectory under the parent directory

Cd.. Return to the parent directory

Cd\ 98 enter the 98 subdirectory under the root directory

4. Copy [/ y] [/-y] [/ v] [/ B]

Copy / y overwrites all files without prompting

/-y prompt for all documents (yes or no questions)

/ v copy and verify later

/ B is displayed in binary

Copy w1.wps con/b can display wps files on the screen without entering the wps state

Copy.\ 98 copy all files under the 98 subdirectory of the parent directory to the current subdirectory

Copy.\ 97 when all the files under the 97 subdirectories under the current directory are copied to the current directory

Copy. C:\ copy all files from the current directory to the root directory of disk c

. It means *. * file

Copy nul a.abc empties the a.abc file (the file length is changed to 0)

Copy filename + con appends commands or content to the text file

Copy con filename create text file (F6 save exit)

Copy con prn detects the switch of the printer

5. Xcopy command

Xcopy [source] [d:date] [/ p] [/ s] [/ e] [/ v] [/ y]

Xcopy [d:date] xcopy aVue b:\ / d:08/18/98/s/v copies files after 98.08.18 years

Xcopy [/ p] prompts to create subdirectories

Copy xcopy [/ s] with subdirectories. Note: if this subdirectory does not exist on the target disk, but on the target disk

If the Terminator of the disk does not end with "\", it will prompt:

Does destination specify a file name or directory name on the target

[frankfilerecording dwelling directory]?

Create a file on the target disk [press] or create a subdirectory [press d]? D key should be selected

Xcopy[ / v] with comparison

*: (1) xcopy does not copy the system and implicit files, so it should modify the attributes before copying.

Is there a prompt when xcopy [/ y] is overwritten? / y is not prompted.

If the target disk or subdirectory name is omitted, copy it to the current directory

VI. Del / p

Add / p whether to prompt before deletion

If del is followed by a subdirectory name, all files under the subdirectory will be implied. System. Delete all except read-only files

Add / p and you can confirm.

7. Undelete [name] / au

Unprompted to restore all files that meet the criteria (recoverable), and set the initials to "#" if already

If it exists, it will be added in the order of "#% & 0 12-9 a murz".

For example, undelete * .dbf/au restores all files with the extension "dbf" and starts with "#" as a file

Name, / list lists only recoverable files, not recoverable

Undelete / load loads undelete into memory

/ unload unloads undelete from memory

/ s [drive] to monitor and manage the designated drive

Undelete/sc

Reside undelete in memory,? And create an implied sentry subdirectory to delete the files on disk c

Manage undelete/ds recovery

The corresponding restore command can fully recover the file name with undelete (very complete)

Most commonly used undelete *. *

Deltree / y [drive:path]

Deltree deletes subdirectories and files, although some files are system files or implicit files

It can have wildcards, and when it does, it will delete eligible files and subdirectories

For example, undelete * .dbf/au recovers all files with the extension "dbf" and starts with "#" as a file

First name.

/ list lists only the files that can be recovered and does not perform a restore operation.

Undelete/load loads undelete into memory.

/ unload unloads undelete from memory.

/ s [drive] monitors and manages the specified drive.

Undelete/sc resides undelete in memory and creates an implicit subdirectory to delete the C disk.

The documents are managed. The corresponding restore command can completely recover the file name with undelete/ds.

The most commonly used is undelete *. *

8. Deltree / y [drive:path]

Deltree deletes subdirectories and files, although some files are systematic or implicit.

It can have wildcards, when it deletes eligible files or subdirectories.

For example, there are L1 files, L2 subdirectories, L3 files, L4 subdirectories.

All the above files and subdirectories will be deleted by deltree Law.*, but confirm before deletion, if not deleted.

You can enter "N".

The / y parameter is operated without confirmation when it is deleted.

The files deleted by it can be recovered with undelete. However, you can not restore the subdirectory and the files under it, you can use the

Special tools. Such as NORTON 8.0 and so on.

If undelete/s,? is used in advance The complete file can be found in the input subdirectory, but the name is already

It has changed.

9. Dos=high [| low[ umb | noumb]]

Dos=high,umb dos loads itself into high-end memory (high) and manages upper memory (umb).

Noumb does not manage upper memory.

Device=himem.sys should be loaded before writing dos=high and umb

In order to load the program or driver into the upper memory, you must use dos=umb, which saves most of the regular memory.

You can write dos=high,umb anywhere in config.sys

The display of hma not avoiable or load down low indicates that high-end memory cannot be used.

10. Doskey records previously typed dos commands, which can be displayed with F7, selected with "↑↓", and typed with F9

The selected command number.

Doskey/restall is reloaded again, and the previous command line is undone.

Doskey/history displays all commands in memory, which can be displayed in other files, abbreviated as / H.

Doskey dir=cls typing dir is the same as cls.

Doskey/macros can display all macro definitions, can be redefined into a file using ">", and can be abbreviated "/ M".

Doskey dir= can undo the macro definition of dir.

Doskey p=dir$tdir*.exe/p$tdir c:\ t$tdir c:\ tasking *

$t is the separator of the command, and $* is the Terminator of the command

Doskey/insert (overstrike)? When you re-enter a command, do you insert or reply the changes to the old command?

Cover status (default).

11. Emm386.exe

Provides management of extended memory so that applications can use it as if they were regular memory.

The common usage is in config.sys

Device=c:\ dos\ himem.sys

Device=c:\ dos\ emm386.exe ram

DMA 64 sets the amount of memory to 64K

Noems provides access to upper-level memory, but not to extended memory.

It should be noted that it is best not to use it in windows, because windows itself manages extended memory.

The procedure of. The manager in windows should be used.

The fc command fc/b dt.dat dt2.dat > b (for binary code comparison)

Compare two files, generally used for access progress, modify game storage files.

0100 should be added to the actual code location, such as 0000 05E4:00 67

0100, that is, 0000 06E4:00 67, should be added when actually using debug-e.

The result of the comparison can be output to the p file by adding the redirection file "> P".

Format / Q / u / s / n:sectors / f:size / c

/ Q parameter: quick format, scan only file allocation table and root area, valid only for formatted disks.

When in use, you should make sure that no new bad channels are added after formatting.

/ u parameter: unconditional formatting, and do not save the information on the original disk, can prevent "unformat".

/ s parameter: formatted as a system disk, or you can use the "sys" command.

/ f:size size can be 160 180 320 360 720 1200 1440 2800

/ n:sector n can be an one-sided disk with a capacity of 160k 180k

360k disks can be formatted for 4 on a 5-inch high-density drive

8 can be formatted with 8 sectors on a 5-inch high-density drive.

/ c retest the bad sector. by default, if a sector is marked "bad", it will not be retested in the future format.

Try, mark only, you can re-test when using "/ C".

14. Unformat command

Works for commands that have been formatted in format and do not use the "/ u" parameter, which can be used to repair the damaged

Bad hard disk partition table, but does not work on network disk.

Unformat drive: [/ l] [/ test] [/ p]

/ l displays every file and subdirectory found by unformat. Without this switch, only those

Broken files and subdirectories can be paused with ctrl+s and press any key to continue.

/ test does only one test, does not do the actual repair work, and simulates the process.

/ p print while testing.

Note: this method does not guarantee to repair all files, especially disks that have added data after formatting.

The recovered files are stored in subdir1....2....3 and other subdirectories in turn.

Interlnk syntax interlnk glosse, it can communicate between two computers through serial port or parallel port.

Map the e drive on the server side to the g drive of the client, and for the client later, all

Operation means access to the server. The way to unmap is interlnk g =

Enter interlnk alone to show all mappings.

Note: interlnk must be loaded with the interlnk.exe device driver before it can be used.

The drive symbol used is related to the number of lastdrv.exe settings in config.?sys. Can be an one.

The serial wire with 25 pins at the end and 9 pins at the other end is realized, and the specific wiring is as follows:

5-7-2-15

3-2-3-13

7-4-4-12

6-6-5-10

3-3-6-11

8-5-15-2

4-20 13-3

9 stitches, 25 stitches, 12-4.

10-5

11-6

25-25

25 stitches.

Interlnk.exe and intersvr.exe

Interlnk.exe redirects requests for client drivers or print interfaces to another server driver

A device or printer.

Syntax: add: config.sys:

Device=c:\ dos\ interlnk.exe [drive:n] [/ noprinter] [com] [lpt]

Memmaker [/ b] [/ batch] [session] [/ swap:drive]

Use memmaker to optimize memory configuration,? And write the configuration to autoexec.bat and config.sys.

In this process, the machine needs to be restarted several times.

Eighteen. Memitem memcolor memdefault submenu menu options include

In autoexec.bat as follows: in config.sys as follows:

Path c:\ dos;c:\ ucdos [menu]

Doskey menucolor=15,1 (foreground color 15, background color 1)

\ mouse\ mouse menuitem=base_config,this is a base

Goto% config%-> option menuitem=cced_config,this is a cced

Option prompt

: base_config menudefault=base_config,5

Goto exit-> the default is base_config and the delay time is 5 seconds.

: cced_config [common]

C:\ dos\ smartdrv.exe / l device=c:\ dos\ himem.sys

The common parts contained in all items of goto exit

: exit-> end [base_config]

Device=c:\ dos\ emm386.exe ram

Dos=high,umb

[cced_config]

Device=c:\ dos\ smartdrv.exe/double_buffer

Include=base_config contains base_config settings

It can be selected according to the configuration requirements of the computer in different situations.

19. Mscdex.exe provides a program for reading and writing to the optical drive

Mscdex/d:drive [/ D:drive] [/ e] [/ k] [/ s] [/ l:letter]

Typical: device=c:\ cdrom\ cdrom.sys / d:mscd000 in config.sys

C:\ dos\ mscdex / d:mscd000 / lvg in autoexec.bat

A CD-ROM drive is configured with the symbol g

Parameter / d:drive1 is the ID number of the optical drive, which must be consistent with the symbol in config.sys, but there can be multiple

/ d:mscd000 / d:mscd001

/ e: use extended memory to load the optical drive driver.

/ s: whether the optical drive is set to a shared optical drive in ms_net or windows

Whether / V displays memory at load time.

/ L:letter the drive letter assigned to the optical drive

/ m:number specifies the number of buffers

What should be noted is:? If you use smartdrv.exe to accelerate the reading and writing ability of the optical drive, it should be in autoexec.

If mscdex.?exe is written before smartdrv.exe in bat, the use of smartdrv.exe can be greatly improved

Ability to read and write to the driver.

The use of msd

Use msd to check computer configuration and system information as a whole

Including:? Driver parameters, computer cpu parameters, memory size parameters, display type, string. Parallel port situation, in order to

And the occupation of each IRQ, based on which we can analyze whether the new equipment conflicts with the original equipment.

At the same time, you can also analyze the memory resident program to determine whether there is a virus in memory.

21, prompt dos prompt

$Q equals sign $t current time $d current date $p current drive symbol

The $$sign prompts $n the current drive $g greater than the sign $l less than the sign $b displays the "|" pipe number

The $h hidden prompt $E shows "use of various plumbing tools" >

< >

Redirects the output generated by the command, such as to a file or printer.

The generated content will be appended to the file, and the content of the original file will be overwritten.

"<

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report