ツールいろいろごった煮リポジトリ
ショートカットを相対パス指定で作成する
※オプション指定で絶対パスでも作成可
- 任意の場所に置く
- 引数を指定して実行する
- 指定するパスは絶対/相対のどちらでも可
makeLink.vbs 対象ファイルのパス ショートカットを置く場所のパス
パスを通した場合はコマンド的な使い方ができる
makeLink 対象ファイルのパス ショートカットを置く場所のパス
3つ目の引数に -f オプションを指定すると絶対パスでショートカットを作成する
makeLink 対象ファイルのパス ショートカットを置く場所のパス -f
ショートカットの対象となるファイルの拡張子がなんであってもショートカットのアイコンはフォルダになる
※Windowsの仕様
※絶対パスで作成した場合はファイルによって変わる
相対パスで作成した場合、作成したショートカットを移動すると動かなくなるので注意
ブログ:PowerShellでマウスカーソルを画面**に表示する
ショートカットキーでマルチディスプレイの任意画面**にカーソルを移動させる
- 任意の場所に置く
- ショートカットキーツールに設定する
- 引数にモニターの番号を指定する(2台あるなら1、2をそれぞれ指定したショートカットキーを作成)
- HotkeyPに設定する場合はこちら
- 実際にショートカットキーを押して動きを確認し、引数の数字を調整
PowerShellやGUIで引数となるモニターの番号を取得できないようなので、実際に動かして割り当てられている数字を確認する必要がある
詳細はブログ参照