LogViewPlus Support

Command Line - Workspace

https://www.logviewplus.com/forum/Topic12.aspx

By Email User - 7 Nov 2018

Hi,

Does LogViewPlus take command line arguments to open a specific workspace on startup? I couldn't find anything about that in the documentation.

Thanks.
By LogViewPlus Support - 7 Nov 2018

No.  Not for opening a workspace.  The only command line argument is the full path to the file or files you want to open.

It's a good idea though and I can see where that would be helpful.  Let me see what I can do for the next release.

Thanks!

Toby

By Mark Sunnucks - 16 Jan 2019

I agree, being able to specify a workspace would be useful. 

Related to this, maybe something in "Settings" to "Automatically Open Last Workspace".

thx
Mark

PS - I just registered my copy of the program.  I've been looking for something like this as freeware for ages, but decided that this was certainly good enough to pay for.  Great work!
By LogViewPlus Support - 16 Jan 2019

Thanks for your support Mark! 

I appreciate the feedback.  I think both of these issues are something we can look at for the next release.  I will post back here when a beta release is ready.

Thanks again,

Toby
By LogViewPlus Support - 26 Feb 2019

Hi Mark,

I just wanted to let you know that we have added a new 'Open last workspace' option in the latest version of LogViewPlus (v2.3).  The new application setting is documented here:
https://www.logviewplus.com/docs/application.html

We have also added the ability to open a Workspace via the command line.  Documentation for this is still pending, but the command line help reads:

C:\Program Files\LogViewPlus>LogViewPlus.exe /?
Usage: LogViewPlus [-?] [-lastworkspace] [-workspace:name] file1path file2path

Options:
 -?    Displays the command line usage. Additional help can be
        found on the LogViewPlus website at
        https://www.logviewplus.com.
 -lastworkspace  Opens the last viewed workspace if available. Note that
        LogViewPlus automatically saves your current workspace
        every 15 seconds.
 -workspace:name  Opens the workspace specified by the 'name' variable if
        available. If the workspace does not exist, the command
        will be ignored.

Examples:

 LogViewPlus file1path file2path
 - Opens file1path and file2path. Note that full file paths are expected.

 LogViewPlus "-workspace:My Worksapce" file1path
 - Opens the workspace named 'My Worksapce' as well as file1.


Hope that helps.  Please let me know if you have any further questions or issues.

...and thanks again for the feedback!

Toby