Is there a command line?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
PeterB
Posts: 19
Joined: 09 Oct 2012 19:04

Is there a command line?

Post by PeterB »

Hi,

I would like to know how to address a command line in XYplorer if there is any. In the menu, I did not find any, neither in the help file.

Thank you.

PeterB
Posts: 19
Joined: 09 Oct 2012 19:04

Re: Is there a command line?

Post by PeterB »

I mean, I see lots of entries for "command line commands" and such, but if there is not any such command line, how to enter command line commands? Seriously, I do not find a command line here.

PeterB
Posts: 19
Joined: 09 Oct 2012 19:04

Re: Is there a command line?

Post by PeterB »

In the special "List of all commands", there is a control-alt-p under "command" but that is a Dos window, I am just looking for a command line such as is in any other file commander I have ever seen.

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

Re: Is there a command line?

Post by admin »

Just type ! in the Address Bar, then type your command line.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Is there a command line?

Post by serendipity »

Hi and Welcome,

By command line you mean command line switches? or you want to run XYplorer.exe from command line?

If its the second, then no, XY runs from GUI only.
With that said you can hide/minimize XYplorer to taskbar tray and trigger XY commands (Help>Help on Scripting commands)
There is a special option /flg=2 to trigger commands from DOS

Could you describe what exactly you plan to do with command line?

PeterB
Posts: 19
Joined: 09 Oct 2012 19:04

Re: Is there a command line?

Post by PeterB »

Thank you! But if I select an item, then enter "copyto a" in the address line, a being a subfolder to be created under the current folder where to item is, Xyplorer says the command is unknown, when in fact, from the help file, I except that XYplorer asks me if I want to create the subfolder a.

If I do the same, but enter "!copyto a" or "!copyto a\" in the address line, I get a Dos box, saying the command is unknown or misspelled.

PeterB
Posts: 19
Joined: 09 Oct 2012 19:04

Re: Is there a command line?

Post by PeterB »

The same when I enter the full path, instead of hoping XYplorer will get that I enter a relative path as above.

PeterB
Posts: 19
Joined: 09 Oct 2012 19:04

Re: Is there a command line?

Post by PeterB »

And on top of that, now before my address line, I have a steady Dos symbol, so my address line only accept Dos commands now it seems, no more internal XYplorer commands.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Is there a command line?

Post by serendipity »

PeterB wrote:The same when I enter the full path, instead of hoping XYplorer will get that I enter a relative path as above.
use :: before any command.
XY doesn't know if you are entering path or entering command.

::copyto...

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Is there a command line?

Post by serendipity »

PeterB wrote:And on top of that, now before my address line, I have a steady Dos symbol, so my address line only accept Dos commands now it seems, no more internal XYplorer commands.
if you enter ! it triggers DOS mode, remove ! to get normal address bar mode.

PeterB
Posts: 19
Joined: 09 Oct 2012 19:04

Re: Is there a command line?

Post by PeterB »

Thank you very much, serendipity! Both versions, relative path and full path, now work as I had hoped. Thank you a lot!

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Is there a command line?

Post by serendipity »

PeterB wrote:Thank you very much, serendipity! Both versions, relative path and full path, now work as I had hoped. Thank you a lot!
Tip: if you are going run lot of scripts from address bar and don't want to enter :: everytime, then tweak this ini entry:
ScriptSmartDetect=1

How to tweak:
http://www.xyplorer.com/xyfc/viewtopic.php?f=10&t=3543

PeterB
Posts: 19
Joined: 09 Oct 2012 19:04

Re: Is there a command line?

Post by PeterB »

Hi,

a simple address line command
::moveto D:\Ph\0\M
(this folder is existant, an item is selected)
brings a message:

XYplorer Scripting

Script:
File: (Internal)
Script: (Untitled)
1moveto D:\Ph\0\M;

Error:
!Überlauf
0\0

Continue
Cancel Script

"Continue" brings the same error message again.

The same with other such commands, items or folders. Where could lie the problem?

So this command did function 2 or 3 times, then never again.

PeterB
Posts: 19
Joined: 09 Oct 2012 19:04

Re: Is there a command line?

Post by PeterB »

Here is one of many identical screenshots, with 1 or several items (here it was 2 items), with many different folders...

I closed down XYplorer, and reopened it, this screenshot is from the reopened XYplorer (10.80).
Attachments
xybug.gif
xybug.gif (9.32 KiB) Viewed 3563 times

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Is there a command line?

Post by serendipity »

You have to put quotes " to avoid errors.

::moveto "D:\Ph\0\M";

Post Reply