Ftp: type |
Applies To: Windows 7,Windows Vista,Windows Server 2008,Windows Server 2008 R2
Sets or displays the file transfer type. For examples of how this command can be used, see Examples.
Syntax
Copy Code |
|
type [<TypeName>] |
Parameters
Parameter |
Description |
[<TypeName>] |
Specifies the file transfer type. |
Remarks
- If TypeName is not specified, the current type is displayed.
- Ftp supports two file transfer types, ASCII and binary.
The default file transfer type is ASCII. The ascii command should be used when transferring text files. In ASCII mode, character conversions to and from the network standard character set are performed. For example, end-of-line characters are converted as required, based on the operating system at the destination.
The binary command should be used when transferring executable files. In binary mode, the file is moved in one-byte units.
Examples
Set the file transfer type to ASCII.
Copy Code |
|
type ascii |
Set the transfer file type to binary.
Copy Code |
|
type binary |