bindres

encode resources and insert them into a specified text file 

Command


SYNOPSIS

bindres target_file source_file [source_file...]

bindres -u target_file [source_file...]


DESCRIPTION

bindres encodes resources and "binds" the result along with descriptive annotations into the body of text files. bindres operates on the resources contained in any .bmp, .cur, .ico, or .res file, and binds the result into any writable text file.

When you bind a resource into target_file, the result is added at the end of the current text. If you bind another resource into a target_file with existing bound resources, the new encoded resource is inserted between the end of the initial text and the beginning of the previously bound resource text.

Options

-u 

removes all existing bound files from target_file. If you specify a source_file on the command line, all existing bound resources in target_file are replaced by the encoded output of source_file.


EXAMPLES

The command

bindres file.ksh bitmap.bmp icon.ico

encodes the resources in bitmap.bmp and icon.ico and inserts them with descriptive annotations into file.ksh.

If you then specify the command

bindres -u file.ksh resource.res

all encoded text from bitmap.bmp and icon.ico is deleted, and the resultant encoded resource.res is inserted in their place.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

>0 

An error occurred.


PORTABILITY

Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Using the MKS KornShell


PTC MKS Toolkit 10.4 Documentation Build 39.