OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: gamba on May 08, 2015, 12:14:29 pm

Title: Set default view for folders from command line
Post by: gamba 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
Title: Re: Set default view for folders from command line
Post by: Alex Taylor on May 08, 2015, 12:23:51 pm
You should be able to use SysSetObjectData with a setup string of 'DEFAULTVIEW=SPLITVIEW;'.
Title: Re: Set default view for folders from command line
Post by: Andreas Schnellbacher 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]
Title: Re: Set default view for folders from command line
Post by: gamba 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!
Title: Re: Set default view for folders from command line
Post by: gamba 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.