Start › Foren › PDF24 Creator › AutoSaveFileCmd: open generated PDF automatically after saving
Schlagwörter: AutoOpenAfterSave, AutoSaving
- Dieses Thema hat 1 Antwort sowie 2 Teilnehmer und wurde zuletzt vor 3 Tagen von PDF24 Support aktualisiert.
-
AutorBeiträge
-
2026-09-14 um 12:26 Uhr #18656adrian422Teilnehmer
Hello,
I am currently configuring PDF24 Creator 11.30.1 x64 for a silent/machine-wide installation.
The PDF24 printer is configured with:
<code class="language-reg">[HKEY_LOCAL_MACHINE\SOFTWARE\PDF24\Services\PDF] "Handler"="autoSave" "AutoSaveDir"="C:\\Temp\\PDF24Test" "AutoSaveFilename"="%Y-%m-%d %H-%M-%S $fileName" "AutoSaveUseFileCmd"=dword:00000001
Automatic saving works correctly.
I also verified that
AutoSaveFileCmdis executed. For example:<code class="language-reg">"AutoSaveFileCmd"="cmd.exe /c echo TEST >> C:\\Temp\\pdf24-command.txt"
creates the file successfully.
I also verified that
${file}is substituted correctly. It contains the complete generated PDF path, for example:<code class="language-text">C:\Temp\PDF24Test\2026-09-14 12-49-10 -Lorem ipsum dolor sit amet, consete - Notepad.pdf
My problem is that I want to automatically open the generated PDF with the user's default PDF application after saving.
I have tried:
<code class="language-reg">"AutoSaveFileCmd"="\"C:\\Program Files\\Adobe\\Acrobat DC\\Acrobat\\Acrobat.exe\" \"${file}\""and even:
<code class="language-reg">"AutoSaveFileCmd"="\"C:\\Program Files\\Adobe\\Acrobat DC\\Acrobat\\Acrobat.exe\""
but Acrobat does not open.
I also tried:
<code class="language-reg">"AutoSaveFileCmd"="cmd.exe /c start \"\" \"${file}\""but nothing happens.
Interestingly, simple commands such as
echowork, soAutoSaveFileCmditself is definitely executed.Is there a recommended way in PDF24 Creator 11.30.1 to launch a GUI application / the user's default PDF viewer from
AutoSaveFileCmdafter an auto-save?Would using a separate PDF24 printer/service make a difference, or is there another command/syntax specifically intended for opening the generated PDF?
Thank you!
2026-10-29 um 15:47 Uhr #19310PDF24 SupportModeratorHello,
thank you for the detailed description. PDF24 runs the command as
cmd.exe /C "<your command>"in a hidden window, with the folder of the saved file as working directory. A program that is started directly from this hidden cmd.exe (likeAcrobat.exe "${file}") can take over the hidden state, so Acrobat may start without a visible window. An invisible Acrobat that keeps running would also receive the next files you open, which could explain why thestartvariant showed nothing either.Please try this:
- Close Acrobat and check in the Task Manager that no Acrobat.exe process is left. End remaining ones.
- Set the command without the extra cmd.exe (PDF24 already runs it through cmd.exe /C):
"AutoSaveFileCmd"="start \"\" \"${file}\""startopens the file with the default PDF application of the user and with a normal window.If that still does not work, you can try
"AutoSaveFileCmd"="explorer.exe \"${file}\"", which also opens the file with the default application.Please let us know whether this works.
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.