1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[windows]よく使う単語をクリップボードに入れるコマンド作成

Posted at

よく使う単語をコマンドでクリップボードに入れたい!

webサービスのログインとかで自分のメアドとかよく使いますよね。
辞書登録しても良いのですが、半角/全角の切り替えも面倒くさいし、変換候補から選ぶのもちょっとだけ面倒。そんな時に使える手段です!

コマンド

以下のbatを使います。

set /P ="よく使う単語"< nul | clip

環境変数

batファイルの場所を環境変数「path」に登録しておきましょう。
「環境変数って?」という方はこちら

ファイルを指定して実行

windowsキー + rを押すとこのウィンドウが出てきます。
ここに、bat名を入れて実行しましょう。

image.png

コピー出来た!

image.png

コピーできました。

なんか便利でかっこよいのでぜひ使ってみてください。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?