Page 1 of 1

Paper folder in the command line

Posted: 21 Jan 2016 01:42
by klownboy
Should I be able to refer to a paper folder in a command line switch where the <curpath> is for example "paper:Wallpaper\Ireland"? For a script example:

Code: Select all

   run """<xy>"" /script=""::loadlayout('thumbs');if(Get('View') != '6'){#308};"" /ini=XYplorer_Gallery.ini ""<curpath>""";
In the case of paper folders only, <curpath> ends up being appended to XY's app path. The help file states that if you want to designate a startup path, place the folder after the "/ini=..." switch and "the start path switch must be the last switch in the command line." "paper:Wallpaper\Ireland" is what you get when you echo <curpath> from the AB and it's also the way a paper folder is designated in the thumbnail cache dat2 file. I've also tried placing the "<curpath>"" and the ini=...switch up front. It seems the only way to start the new XY in a paper folder (with a different ini file), is to use the goto command in the /script = section like this:

Code: Select all

run """<xy>"" /ini=XYplorer_Gallery.ini /script=""::goto '<curpath>';if get(#663){#663};""";
This method results in a flicker or shudder when navigating from a default path to the current path which is less than ideal. Is this a little glitch, do I have the syntax wrong, or am I missing something? Thanks.

Re: Paper folder in the command line

Posted: 21 Jan 2016 15:03
by admin
Paper Folders will work as start path in next beta.

Re: Paper folder in the command line

Posted: 21 Jan 2016 15:12
by klownboy
Absolutely great Don, thanks. :tup: :appl:

Re: Paper folder in the command line

Posted: 21 Jan 2016 17:47
by klownboy
Don, I was asked the question in this thread whether folders listed in the command line could also recognize flat view like: F:\MP3? /:flat ...as seen in the Address Bar and what is returned by: $curpath = replace(tab('get', 'term'), "'", "''"); Any chance for that? Like for paper folders, you currently need to use SC goto in the script section of the command line. Thanks .

Re: Paper folder in the command line

Posted: 21 Jan 2016 18:43
by admin
I fiddled with it a bit and it seems to work. However, I won't make this official for now. Next beta... :whistle:

Re: Paper folder in the command line

Posted: 21 Jan 2016 18:55
by bdeshi
klownboy wrote:Don, I was asked the question in this thread whether folders listed in the command line could also recognize flat view like: F:\MP3? /:flat ...as seen in the Address Bar and what is returned by: $curpath = replace(tab('get', 'term'), "'", "''"); Any chance for that? Like for paper folders, you currently need to use SC goto in the script section of the command line. Thanks
ahem, same for QS and multi-location QS. :whistle:

Re: Paper folder in the command line

Posted: 21 Jan 2016 20:07
by admin
QS and multi-location QS... might even work in next beta, pssst... :ninja:

Re: Paper folder in the command line

Posted: 21 Jan 2016 21:18
by klownboy
Thanks Don, paper folders are definitely working from the command line and though I haven't thoroughly tested it, it appears that the /flat branch view is as well with beta v16.20.0005. :tup:

Re: Paper folder in the command line

Posted: 21 Jan 2016 21:20
by admin
Yep, BV as well.

Re: Paper folder in the command line

Posted: 22 Jan 2016 12:05
by klownboy
Quick question concerning the Command Line Help for the last "Start Path" section states:
The INI contains all settings including the current start path. You can however overwrite this value by stating the start path in the right-most (unnamed) switch...
ยท The start path switch must be the last in the command line.
In my testing, it no longer appears to be true, even before the last beta, that the "/ini=...with start path" section had to be the last or right most switch. Applying a Start Path seems to work fine even if the "/ini=..." switch is before a "/script=" switch.

Code: Select all

 run """<xy>"" /ini=XYplorer_Gallery.ini ""<curpath>"" /script=""::if(Get('View') != '6'){#308};loadlayout('thumbs');"""; //this works }
Even if you'd rather not change it or consider it still to be true you may want to expand on the Notes to say in addition to Special paths it will work on PaperFolders and BV.
Thanks.

Re: Paper folder in the command line

Posted: 22 Jan 2016 12:20
by admin
Yep, seems to work. But without thorough testing I won't change the help file. Also PF/BV support will stay under cover for now.