How to jump to another dir IN THE SAME XYplorer window?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
tobwen
Posts: 53
Joined: 08 Jan 2022 08:43

How to jump to another dir IN THE SAME XYplorer window?

Post by tobwen »

Assume I have a simple batch script jump.bat with the following content:

Code: Select all

cd /D "D:\tools\XYplorer\XYplorer.exe" D:\data
When I double click on it nothing happens.

How else can I tell (from within a batch script) THE CURRENT XYplorer instance to jump to another directory IN THE SAME WINDOW?

XYplorer should NOT open a new, second XYplorer instance and window.

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to jump to another dir IN THE SAME XYplorer window?

Post by jupe »

If you have single instance open, just this:

"D:\tools\XYplorer\XYplorer.exe" D:\data

tobwen
Posts: 53
Joined: 08 Jan 2022 08:43

Re: How to jump to another dir IN THE SAME XYplorer window?

Post by tobwen »

jupe wrote: 14 Jun 2023 08:08 If you have single instance open, just this:

"D:\tools\XYplorer\XYplorer.exe" D:\data
Unfortunately this does NOT work.

I am getting an error message:

"The filename, directory name, or volume label syntax is incorrect."

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to jump to another dir IN THE SAME XYplorer window?

Post by jupe »

You're running that command in a batch file? Make sure to quote the path if it has spaces, and double check the path you have for XY.

The command will definitely work if you do it properly. Before trying it in a batch file, just run the command from a command prompt that is opened in the XYplorer folder, then use XYplorer.exe without path, and you'll see that it will definitely work.

If you need further suggestions, show a screenshot that contains the relevant batch file content, and the command prompt after running it.

tobwen
Posts: 53
Joined: 08 Jan 2022 08:43

Re: How to jump to another dir IN THE SAME XYplorer window?

Post by tobwen »

Yes XYplorer opens in the target directory BUT it opens it in a new SECOND XYplorer window and NOT in the current window.

Its the same if I execute the command from batch script in Command Prompt in XYplorer installation directory

Here is the simple batch script jumptmp.bat:

Code: Select all

XYplorer.exe "D:\tmp"
pause

I guess I have either to pass a cmdline parm like

Code: Select all

XYplorer.exe -usecurrentxyplorerinstance "D:\tmp"
Or I have to disallow multiple XYplorer instances. But I want to avoid latter.

Any other idea?

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

Re: How to jump to another dir IN THE SAME XYplorer window?

Post by highend »

Use the /feed command line parameter with a simple goto script command?
One of my scripts helped you out? Please donate via Paypal

tobwen
Posts: 53
Joined: 08 Jan 2022 08:43

Re: How to jump to another dir IN THE SAME XYplorer window?

Post by tobwen »

Hmm, I have never worked with the "feed" command. How does that work?

Code: Select all

XYplorer /feed myscript.txt
and simply put

Code: Select all

goto D:\tmp 
inside myscript.txt?

Where can I find all available command line parameters for XYplorer?

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

Re: How to jump to another dir IN THE SAME XYplorer window?

Post by highend »

Code: Select all

xyplorer.exe /feed="::goto 'D:\tmp';"
In the help file, Advanced Topics, Command Line Switches?
One of my scripts helped you out? Please donate via Paypal

tobwen
Posts: 53
Joined: 08 Jan 2022 08:43

Re: How to jump to another dir IN THE SAME XYplorer window?

Post by tobwen »

highend wrote: 25 Jun 2023 20:59

Code: Select all

xyplorer.exe /feed="::goto 'D:\tmp';"
Does NOT work. As in many other suggestions XYplorer opens a NEW XYplorer instances and jumps to target directory over there.

It seems to me that everyone here has disabled "Allow multiple instances".

Really no way of jumping INSIDE the current instance?

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to jump to another dir IN THE SAME XYplorer window?

Post by jupe »

Do you have this enabled?

Configuration | General | Startup & Exit | Open new instance always

tobwen
Posts: 53
Joined: 08 Jan 2022 08:43

Re: How to jump to another dir IN THE SAME XYplorer window?

Post by tobwen »

jupe wrote: 30 Jun 2023 08:54 Do you have this enabled?

Configuration | General | Startup & Exit | Open new instance always
Yes, I enabled this.
And I want to keep this preference in general.

Only if I double click on the mentioned batch script XYplorer should jump to other directory IN THE CURRENT instance

Post Reply