wpaste

write clipboard text to standard output or a specified file 

Command


SYNOPSIS

wpaste [-fnqr] [-t timeout] [file]

wpaste [-e]


DESCRIPTION

wpaste writes any text currently residing in the clipboard to either standard output or a specified file.

Options

-e 

displays all formats that can be used to read items currently on the clipboard.

-f 

displays any file names currently on the clipboard (rather than clipboard text).

-h 
writes clipboard items in HTML format as plain text to the standard output or specified file. Items in text format are not written.
-n 

ensures that the pasted text has a final carriage return and newline at the end. Often a final newline is not included when a block of text is selected and copied from a Windows application. This option ensures that a newline is included in wpaste's output.

-q 

enables quiet mode. Usually error codes are written to standard error, but with the -q option these codes are suppressed. This option is useful when working with shell scripts which just want to check the return value for errors.

-r 

keeps trying to access the clipboard if it is not accessible at first. Without this option, wpaste issues an error and stops if it cannot access the clipboard.

-t timeout 

is similar to the -r option except that wpaste stops trying to access the clipboard after timeout seconds. If you specify a timeout of less than one second, a default of one second is used.


DIAGNOSTICS

Possible exit status values are:

0 

Successful.

1 

Unable to get access to clipboard.

2 

No item in text format (or HTML format if -h is specified) available on clipboard.

3 

Unable to read text from clipboard

4 

Unable to create output file


PORTABILITY

Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.


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

Commands:
wcopy


PTC MKS Toolkit 10.1 Documentation Build 15.