“help”对 Windows 7 命令不起作用

“help”对 Windows 7 命令不起作用

我想知道在 Windows 7 上使用 cmd.exe 命令时如何获取帮助。

一位朋友告诉我,只要在命令后输入 help,它就会给我一些帮助。但这对我来说不起作用。

我收到错误“系统找不到指定的文件。” 出现问题的图片

我如何获得帮助?

答案1

Windows 中的命令提示符帮助传统上是/?开关。

即:C:\> Dir /?产生:

Displays a list of files and subdirectories in a directory.

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

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

  /A          Displays files with specified attributes.
  attributes   D  Directories                R  Read-only files
               H  Hidden files               A  Files ready for archiving
               S  System files               I  Not content indexed files
               L  Reparse Points             -  Prefix meaning not
  /B          Uses bare format (no heading information or summary).
  /C          Display the thousand separator in file sizes.  This is the
              default.  Use /-C to disable display of separator.
  /D          Same as wide but files are list sorted by column.
  /L          Uses lowercase.
  /N          New long list format where filenames are on the far right.
  /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 (oldest first)
               G  Group directories first    -  Prefix to reverse order
  /P          Pauses after each screenful of information.
  /Q          Display the owner of the file.
  /R          Display alternate data streams of the file.
  /S          Displays files in specified directory and all subdirectories.
  /T          Controls which time field displayed or used for sorting
  timefield   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

Switches may be preset in the DIRCMD environment variable.  Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.

您也可以使用help <command>;即:C:\> help dir

答案2

你想要的help copy反而是。

C:>帮助

有关特定命令的更多信息,请键入 HELP 命令名称

答案3

HELP COPY

是获得帮助的一种方法。

另一种方法是使用帮助开关,通常是 /?,但有时也是 -?。有时两种方法都可以。

COPY /?

HELP 本身将显示所有基本命令。

相关内容