ftp ascii

適用於:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012

將檔案傳輸類型設定為 ASCII。 ftp 命令同時支援 ASCII (預設) 和二進位映像檔案傳輸類型,但建議在傳輸文字檔時使用 ASCII。 在 ASCII 模式中,將會執行與網路標準字元集之間的來回字元轉換。 舉例來說,行尾字元會視需要而定,根據目標作業系統進行轉換。

語法

ascii

範例

若要將檔案傳輸類型設為 ASCII,請輸入:

ascii