0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

サクラエディタの起動時に特定のファイルを開く

0
Last updated at Posted at 2026-03-08

バッチファイルから起動する

サクラエディタの引数に特定のファイルパスを指定して起動するバッチファイルを作成します。

sakura.bat
start "" "C:\Program Files (x86)\sakura\sakura.exe" "C:\Home\memo.md"

タスクバーから起動できるようにする

batファイルはタスクバーに登録できないため、ショートカットを作成して登録します。

空のショートカットファイルを作成します。
右クリック>プロパティからリンク先を以下のようにします。
コマンドプロンプトからバッチファイルを起動するようにします。

C:\Windows\System32\cmd.exe /c "C:\Home\open_sakura_editor.bat"

ついでにアイコンの変更ボタンを押して、サクラエディタのexeファイルを指定するとアイコンも変わります。

image.png

これをタスクバーに登録すると、特定のファイルをいつも開けるようになります。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?