Forum moved here!

Home / Open Sumatra only 1 file from command line?

pmkdatabase

Hi. I am using VBA within Access to open a file, but Sumatra adds it to its history and opens all the tabs it has in history every time… Is there anyway I can close the previous tabs from the command line or only open it on this one file?

If there is an argument I can use here, I could really use some help with the syntax for the wscript below
Thanks.

Set ws = CreateObject(“Wscript.Shell”)
strCMD = CurrentProject.Path & “\sumatrapdf.exe " & “””" & pfile & “”""

kjk

You can delete settings file (http://www.sumatrapdfreader.org/settings.html) each time before executing Sumatra.

Or you can set RestoreSession = false once so the history will not be remembered.

pmkdatabase

Thanks for the prompt reply. I will try those.