Author Topic: Set default view for folders from command line  (Read 10815 times)

gamba

  • Guest
Set default view for folders from command line
« on: May 08, 2015, 12:14:29 pm »
Hi all,

I have some Samba remote folders that I would like to automatically open as "Split view" when I double click them.
I can set the "Default" opening mode to "Split view", but this setting is lost after reboot. Is there any way to set the "Default" opening mode for a folder via REXX?

Thanks
Gabriele

Alex Taylor

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +6/-0
    • View Profile
Re: Set default view for folders from command line
« Reply #1 on: May 08, 2015, 12:23:51 pm »
You should be able to use SysSetObjectData with a setup string of 'DEFAULTVIEW=SPLITVIEW;'.

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: Set default view for folders from command line
« Reply #2 on: May 08, 2015, 04:46:36 pm »
You can easily use the 'Open as...' cascade menu item to set a folder's default view: Keep the Sh key pressed while clicking with MB1 on a view item.

BTW: That feature is apparently not well documented in XWP's hlp and inf files. But I've found it here: xfld001.hlp -> Version Information -> XWorkplace 1.0.9.

o  Shift+MB1 on an item in the 'Open as' menu now sets the default view for files and folders. Bug 4 [rw]

gamba

  • Guest
Re: Set default view for folders from command line
« Reply #3 on: May 08, 2015, 09:24:55 pm »
You should be able to use SysSetObjectData with a setup string of 'DEFAULTVIEW=SPLITVIEW;'.

Thank you Alex,

oo /A Y:\remoteresource DEFAULTVIEW=SPLITVIEW;

works great!

gamba

  • Guest
Re: Set default view for folders from command line
« Reply #4 on: May 08, 2015, 09:26:49 pm »
You can easily use the 'Open as...' cascade menu item to set a folder's default view:
...

Hi Andreas, the folder is a remote (Netdrive) resource and the setting is lost with reboot.