win batch: quote paths

This commit is contained in:
Jean-Francois Dockes 2019-10-08 15:57:26 +02:00
parent c849f96cc3
commit 85397eac08
2 changed files with 3 additions and 4 deletions

View File

@ -50,7 +50,7 @@ void WinSchedToolW::init()
if (!path_exists(batchfile)) { if (!path_exists(batchfile)) {
FILE *fp = fopen(batchfile.c_str(), "w"); FILE *fp = fopen(batchfile.c_str(), "w");
fprintf(fp, "%s -c %s\n", recollindex.c_str(), fprintf(fp, "\"%s\" -c \"%s\"\n", recollindex.c_str(),
theconfig->getConfDir().c_str()); theconfig->getConfDir().c_str());
fclose(fp); fclose(fp);
} }
@ -62,8 +62,7 @@ void WinSchedToolW::init()
"(<i>Create task</i> in the menu on the right), or the simplified " "(<i>Create task</i> in the menu on the right), or the simplified "
"<i>Create Basic task</i> wizard. In both cases Copy/Paste the " "<i>Create Basic task</i> wizard. In both cases Copy/Paste the "
"batch file path listed below as the <i>Action</i> to be performed." "batch file path listed below as the <i>Action</i> to be performed."
"Once created, you will find your task in the <i>WPD</i> section " "</p>"
"of the task library.</p>"
); );
blurb.append("</p><p><tt>").append(u8s2qs(batchfile)).append("</tt></p>"); blurb.append("</p><p><tt>").append(u8s2qs(batchfile)).append("</tt></p>");

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>508</width> <width>508</width>
<height>416</height> <height>292</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">