The MASM Forum

Members Gallery => Showcase => Topic started by: hutch-- on September 13, 2019, 01:36:26 PM

Title: Command line clipboard app
Post by: hutch-- 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
Title: Re: Command line clipboard app
Post by: Vortex on June 28, 2020, 11:25:46 PM
Assigning the output of clipb to an environment variable :

clipb-test.bat :

clipb.exe /set %Username%

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

echo %cb%