SYNOPSIS
wcopy
[
DESCRIPTION
wcopy copies text from a file (or from standard input if no file is specified) to the Windows clipboard.
Options
-e -
empties the clipboard instead of copying to it.
-q -
suppresses error codes (quiet mode). Normally, error codes are printed to standard error.
-r -
keeps trying to access the clipboard if it is not accessible at first. Without this option, wcopy issues an error and exits if it cannot access the clipboard.
-t timeout-
is similar to the
-r option except that wcopy 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.
ENVIRONMENT VARIABLES
- TK_USE_CTRLD_AS_CONSOLE_EOF
-
When set, CTRL-D is used as the EOF (end-of-file) character when the input is from the console.
DIAGNOSTICS
Possible exit status values are:
- 0
-
Successful
- 1
-
Unable to get access to clipboard
- 2
-
Out of memory
- 3
-
Text copy failed
- 4
-
Problems opening or reading from file
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
- Commands:
- wpaste
PTC MKS Toolkit 10.4 Documentation Build 39.