Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com

Home

 
4D v20 R7
IT_Decode

IT_Decode 


 

IT_Decode ( fileName ; decodedFile ; decodeMode ) -> Funktionsergebnis 
Parameter Typ   Beschreibung
fileName  Text in LocalPath to an encoded file
decodedFile  Text in LocalPath file specification
in Path of decoded file
decodeMode  Ganzzahl in Mac & Win: 1 = BinHex 2 = Base64 (Data fork only) 7 = UUEncode 8 = MacBinary;
Mac only: 3 = AppleSingle 4 = AppleDouble 5 = AppleSingle AND Base64 6 = AppleDouble AND Base64
Funktionsergebnis  Ganzzahl in Error Code

The IT_Decode command decodes a file using the decodeMode specified. The specified file will not be altered and a decoded copy will be created.

fileName takes a full pathname specification to a file you want to decode.

decodedFile can be passed:

  • a full LocalPath file specification providing a name and location for the decoded file.
     
  • a full LocalPath folder specification indicating the folder that will receive the decoded file using the original file name.
     
  • a null string (in this case, the IT_Decode command) will provide its own name for the document, located in the same folder as the file specified in the first parameter.
     
    Whether specified or not, the full path of the decoded document will be returned in this parameter.

decodeMode identifies which decoding method to apply to the file. The default value is 1 for binhex decoding. Other methods are:
 

CodeSchemeAvailable on
1BinHexWin & Mac
2Base64 (Data fork only)Win & Mac
3AppleSingleMac
4AppleDoubleMac
5AppleSingle and Base64Mac
6AppleDouble and Base64Mac
7UUEncodeWin & Mac
8MacBinaryWin & Mac

When decoding using AppleDouble (decodeModes 4 & 6), this command looks for a file named "%filename" for the resource fork.



Siehe auch 

IT_Encode

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: IC Utilities
Nummer: 88909

spezifisches Verhalten unter Windows

 
SEITENINHALT 
 
GESCHICHTE 

Geändert: 4D Internet Commands 6.8.1
Geändert: 4D Internet Commands v16 R2

 
ARTIKELVERWENDUNG

4D Internet Commands ( 4D v20 R7)