Page 1 of 2

Is there a command line?

Posted: 09 Oct 2012 19:07
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.

Re: Is there a command line?

Posted: 09 Oct 2012 19:12
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.

Re: Is there a command line?

Posted: 09 Oct 2012 19:18
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.

Re: Is there a command line?

Posted: 09 Oct 2012 19:23
by admin
Just type ! in the Address Bar, then type your command line.

Re: Is there a command line?

Posted: 09 Oct 2012 19:31
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?

Re: Is there a command line?

Posted: 09 Oct 2012 19:35
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.

Re: Is there a command line?

Posted: 09 Oct 2012 19:39
by PeterB
The same when I enter the full path, instead of hoping XYplorer will get that I enter a relative path as above.

Re: Is there a command line?

Posted: 09 Oct 2012 19:41
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.

Re: Is there a command line?

Posted: 09 Oct 2012 19:42
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...

Re: Is there a command line?

Posted: 09 Oct 2012 19:45
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.

Re: Is there a command line?

Posted: 09 Oct 2012 19:47
by PeterB
Thank you very much, serendipity! Both versions, relative path and full path, now work as I had hoped. Thank you a lot!

Re: Is there a command line?

Posted: 09 Oct 2012 19:51
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

Re: Is there a command line?

Posted: 09 Oct 2012 21:45
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.

Re: Is there a command line?

Posted: 09 Oct 2012 21:55
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).

Re: Is there a command line?

Posted: 09 Oct 2012 22:02
by serendipity
You have to put quotes " to avoid errors.

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