Forum moved here!

Home / Open Sumatra only 1 file from command line?


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

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


You can delete settings file ( each time before executing Sumatra.

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


Thanks for the prompt reply. I will try those.