Page 1 of 1
How to jump to another dir IN THE SAME XYplorer window?
Posted: 14 Jun 2023 07:46
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.
Re: How to jump to another dir IN THE SAME XYplorer window?
Posted: 14 Jun 2023 08:08
by jupe
If you have single instance open, just this:
"D:\tools\XYplorer\XYplorer.exe" D:\data
Re: How to jump to another dir IN THE SAME XYplorer window?
Posted: 16 Jun 2023 07:21
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."
Re: How to jump to another dir IN THE SAME XYplorer window?
Posted: 16 Jun 2023 07:25
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.
Re: How to jump to another dir IN THE SAME XYplorer window?
Posted: 25 Jun 2023 20:31
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:
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?
Re: How to jump to another dir IN THE SAME XYplorer window?
Posted: 25 Jun 2023 20:36
by highend
Use the /feed command line parameter with a simple goto script command?
Re: How to jump to another dir IN THE SAME XYplorer window?
Posted: 25 Jun 2023 20:55
by tobwen
Hmm, I have never worked with the "feed" command. How does that work?
and simply put
inside myscript.txt?
Where can I find all available command line parameters for XYplorer?
Re: How to jump to another dir IN THE SAME XYplorer window?
Posted: 25 Jun 2023 20:59
by highend
Code: Select all
xyplorer.exe /feed="::goto 'D:\tmp';"
In the help file, Advanced Topics, Command Line Switches?
Re: How to jump to another dir IN THE SAME XYplorer window?
Posted: 30 Jun 2023 08:49
by tobwen
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?
Re: How to jump to another dir IN THE SAME XYplorer window?
Posted: 30 Jun 2023 08:54
by jupe
Do you have this enabled?
Configuration | General | Startup & Exit | Open new instance always
Re: How to jump to another dir IN THE SAME XYplorer window?
Posted: 11 Jul 2023 09:20
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