From e4c0391d0c47bbb0602380cb9f7131717a7f1844 Mon Sep 17 00:00:00 2001 From: shaoziyang Date: Thu, 28 Oct 2021 22:00:00 +0800 Subject: [PATCH] fixed path error - fixed path error in file 'JoplinPortable.cmd', attachments display correctly now. --- source/Unit1.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Unit1.pas b/source/Unit1.pas index f38de8b..b39e078 100644 --- a/source/Unit1.pas +++ b/source/Unit1.pas @@ -97,7 +97,7 @@ procedure TfrmMain.btn3Click(Sender: TObject); s := lst1.Items[lst1.Tag]; AssignFile(F, path + 'JoplinPortable.cmd'); Rewrite(F); - write(F, '@start "" "%~dp0\App\Joplin\Joplin.exe" --profile "%~dp0\Notes\' + s + '"'); + write(F, '@start %~dp0App\Joplin\Joplin.exe --profile %~dp0Notes\' + s); note := s; ini.WriteString('option', 'note', note);