2
3

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でbashシェルスクリプトをダブルクリックで実行する

Last updated at Posted at 2020-07-12

方法1. Git Bashをインストールして.shファイルをダブルクリック。Git Bashの範囲内でbashが実行できる。

方法2. WSLのインストールして、下記のようなバッチファイルを作成しダブルクリック。wslの範囲内でbashが実行できる。

実行したいシェルを配置する。

c:/toos/script/hoge.sh

バッチファイルを作成する。

run_wsl.bat
wsl bash /mnt/c/tools/script/hoge.sh
2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?