Exporteren (0) Afdrukken
Alles uitvouwen

Type

Bijgewerkt: september 2007

Van toepassing op: Windows Server 2008, Windows Vista

Displays the contents of a text file. Use the type command to view a text file without modifying it.

For examples of how to use this command, see Examples.

Syntax

type [<Drive>:][<Path>]<FileName>

Parameters

 

Parameter Description

[<Drive>:][<Path>]<FileName>

Specifies the location and name of the file or files that you want to view. Separate multiple file names with spaces.

/?

Displays help at the command prompt.

Remarks

  • If FileName contains spaces, enclose it in quotation marks (for example, "File Name Containing Spaces.txt").

  • If you display a binary file or a file that is created by a program, you may see strange characters on the screen, including formfeed characters and escape-sequence symbols. These characters represent control codes that are used in the binary file. In general, avoid using the type command to display binary files.

Examples

To display the contents of a file named Holiday.mar, type:

type holiday.mar 

To display the contents of a lengthy file named Holiday.mar one screen at a time, type:

type holiday.mar | more 

Additional references

Vindt u dit nuttig?
(1500 tekens resterend)
Bedankt voor uw feedback

Community-inhoud

Weergeven:
© 2014 Microsoft