xyplorer command line arguments

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
BBL
Posts: 4
Joined: 19 Feb 2013 08:48

xyplorer command line arguments

Post by BBL »

I hope this wasnt covered before, but i spent quite some time searching: Is there any command line reference for xyplorer? Google didnt find anything, the included chm file shows just some 'website cannot be displayed' error message.

More specifically, i would like to specify at startup where xyplorer should store its user specific files (data folder, settings, etc.). I found hints that this is possible via commandline arguments, but nothing further.
I use multiply users, that should not share their config. Some of them cant even write to the program folder. So it would put the data folder somewhere into the user profile directory.
A commandline argument, that tells xyplorer to search for its files in the users appdata folder right away would be nice as well.

Thanks in advance.

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: xyplorer command line arguments

Post by Borut »

Hi and welcome!
BBL wrote:the included chm file shows just some 'website cannot be displayed' error message.
If I understand it correctly, you should first make the hep file usable. See here for that: http://www.xyplorer.com/faq-topic.php?id=chm

Then, for your other questions, copy&paste the following line into the address bar and press ENTER:

Code: Select all

::rtfm("idh_commandlineswitches.htm")
Win 10 Pro 64bit

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

Re: xyplorer command line arguments

Post by admin »

Slightly offtopic: help is a working synonym to rtfm. I know that some fellow humans in a big country on the other side of a fairly big ocean can be a bit touchy, at least compared to people from this side of that ocean, especially to those from Cologne. :mrgreen:

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: xyplorer command line arguments

Post by PeterH »

If you can't get your helpfile to work you at least could use the PDF help - it includes the same information as the help embedded in the program.

BBL
Posts: 4
Joined: 19 Feb 2013 08:48

Re: xyplorer command line arguments

Post by BBL »

The help file is now cleared up, rtfm is ok with me :D

This might be useful to others, so i'm posting it here: I run xyplorer with the commandline

Code: Select all

XYplorer.exe /title="%USERNAME%" /ini="%APPDATA%\XYplorerData\"
The idea is, to have the config in the users app data folder, and the window title show the username.
The specific ini-directory works (that was my main concern, thanks!)
The title parameter doesnt seem to work. No matter if i have it first or last or with a static text.

And, the ini parameter behaves somewhat weird. When the specified directory does not exist, i get a messagebox with this message:

Code: Select all

Thecommandlineswitch/inipointsanon-existingpath:\n\n<$p>\n\nDefaultswillbeusedinstead
No blanks, seems a bit unprocessed. I think it would be great, if yxplorer would aks to create that folder, as it does with the default Data-folder.

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

Re: xyplorer command line arguments

Post by admin »

BBL wrote:The help file is now cleared up, rtfm is ok with me :D

This might be useful to others, so i'm posting it here: I run xyplorer with the commandline

Code: Select all

XYplorer.exe /title="%USERNAME%" /ini="%APPDATA%\XYplorerData\"
The idea is, to have the config in the users app data folder, and the window title show the username.
The specific ini-directory works (that was my main concern, thanks!)
The title parameter doesnt seem to work. No matter if i have it first or last or with a static text.

And, the ini parameter behaves somewhat weird. When the specified directory does not exist, i get a messagebox with this message:

Code: Select all

Thecommandlineswitch/inipointsanon-existingpath:\n\n<$p>\n\nDefaultswillbeusedinstead
No blanks, seems a bit unprocessed. I think it would be great, if yxplorer would aks to create that folder, as it does with the default Data-folder.
Confirmed, weird message... :shock: .... will check that.

Tip: What you want can be achieved simpler:
1) Use startup.ini (see help) to define the soft data path:

Code: Select all

[Appdata]
Path=%appdata%\XYplorer
2) Put %USERNAME% to the titlebar template in Configuration / Templates.

BBL
Posts: 4
Joined: 19 Feb 2013 08:48

Re: xyplorer command line arguments

Post by BBL »

I finally tried the window title, but it seems the %USERNAME% variable isnt recognized at this location. It is shown as "%USERNAME% ..." in the window title.

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

Re: xyplorer command line arguments

Post by admin »

BBL wrote:I finally tried the window title, but it seems the %USERNAME% variable isnt recognized at this location. It is shown as "%USERNAME% ..." in the window title.
Environment variables are not supported here. But they will be from the next beta version onwards.

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: xyplorer command line arguments

Post by PeterH »

admin wrote:
BBL wrote:I finally tried the window title, but it seems the %USERNAME% variable isnt recognized at this location. It is shown as "%USERNAME% ..." in the window title.
Environment variables are not supported here. But they will be from the next beta version onwards.
But you already can use <get username> :D

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

Re: xyplorer command line arguments

Post by admin »

True, but why not allow ENV? Cannot harm.

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: xyplorer command line arguments

Post by PeterH »

admin wrote:True, but why not allow ENV? Cannot harm.
Nonono - no problem with it :P

Just wanted to point to other ways: many interesting things to do with <get ...> :D

Skettalee
Posts: 136
Joined: 06 May 2019 20:27

Re: xyplorer command line arguments

Post by Skettalee »

Not sure if this is the same thing but I have been using FlowLauncher (a really cool command prompt thats elegant and has lots of plugins and ways to interact with the computer but it also has a Default File Manager and in there it allows you to name the file manager (like as a profile) and put the file manager path and then the ARg for Folder and Arg for File, those are currently set to "%d" and actually both "%d" Just came searching to see if there are certain arguments to place there but I didn't really see that from this post.
Screenshot 2023-11-30 190210.png
To see the attached files, you need to log into the forum.

highend
Posts: 14926
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: xyplorer command line arguments

Post by highend »

And what exactly is the problem now?
One of my scripts helped you out? Please donate via Paypal

Skettalee
Posts: 136
Joined: 06 May 2019 20:27

Re: xyplorer command line arguments

Post by Skettalee »

Sorry I seem to have problems learning how to use the software correctly but its not a problem, not that i can think of. I was just showing the settings to see if what i have in there was right. Im still not even sure how I use that program to do anything with a file manager even yet, so if you dont see a problem with that screenshot then Im sure thi0ngs are fine and I just need to learn more on that other program. Thank you again and sorry for all my questions

highend
Posts: 14926
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: xyplorer command line arguments

Post by highend »

XY supports navigating to files so the second option can be "%f"
One of my scripts helped you out? Please donate via Paypal

Post Reply