Author Topic: Command line clipboard app  (Read 2464 times)


  • Administrator
  • Member
  • ******
  • Posts: 10281
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Command line clipboard app
« on: September 13, 2019, 01:36:26 PM »
The "Showcase" sub forum has not been knocked over in the rush so I thought I should post something in it. Simple to use, the syntax is as follows. If you run the app from the command line it produces the syntax below.

clipb Command Line Clipboard Application
Wickedly crafted in 64 bit Microsoft Assembler <MASM>
Copyright The MASM32 SDK, 1997-2019
All Rights Reserved

clipb /set
  any text after /set will be written to the clipboard
  EXAMPLE : clipb /set This is the text after the 1st arg

clipb /get
  get clipboard text and display it at the console
  clipb /get does not accept any arguments

clipb /clr
  clear all text from clipboard
hutch at movsd dot com    :biggrin:  :skrewy:


  • Member
  • *****
  • Posts: 2737
Re: Command line clipboard app
« Reply #1 on: June 28, 2020, 11:25:46 PM »
Assigning the output of clipb to an environment variable :

clipb-test.bat :

Code: [Select]
clipb.exe /set %Username%

FOR /f %%i in ('clipb.exe /get') do @SET cb=%%i

echo %cb%