Paper folder in the command line

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
klownboy
Posts: 4424
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Paper folder in the command line

Post 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.

admin
Site Admin
Posts: 65351
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Paper folder in the command line

Post by admin »

Paper Folders will work as start path in next beta.

klownboy
Posts: 4424
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: Paper folder in the command line

Post by klownboy »

Absolutely great Don, thanks. :tup: :appl:

klownboy
Posts: 4424
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: Paper folder in the command line

Post 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 .

admin
Site Admin
Posts: 65351
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Paper folder in the command line

Post 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:

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Paper folder in the command line

Post 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:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 65351
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Paper folder in the command line

Post by admin »

QS and multi-location QS... might even work in next beta, pssst... :ninja:

klownboy
Posts: 4424
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: Paper folder in the command line

Post 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:

admin
Site Admin
Posts: 65351
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Paper folder in the command line

Post by admin »

Yep, BV as well.

klownboy
Posts: 4424
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: Paper folder in the command line

Post 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.

admin
Site Admin
Posts: 65351
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Paper folder in the command line

Post 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.

Post Reply