Monday, 2 May 2011

simple command prompt batch for copy the first argument to clipboard

@rem copy text to clipboard using echo with no new line trailing, save it to a .bat file like ctc.bat
@usage : ctc text_want_to_copy
@
@if "%1" == "" goto endall
@echo/|set /p =%1| clip
:endall

No comments:

Labels

Search This Blog