Page 1 of 1
Bug when launching from command line
Posted: 27 Jul 2015 18:40
by sinilill
I'm launching XYplorer via command line with a file path and get different result when XY is running and when not. It is only happening with locations like Desktop and Userprofile.
When XY is running and I try to launch myfile.txt which is on my desktop, then XY tries to go to XYinstallDIR\Desktopmyfile.txt\
When XY is not running and I launch the same command, then XY is starting, opens a new tab and selects the myfile.txt file
Same happens with the Userprofile folder, XY want's to go to XYinstallDIR\USERmyfile.txt\
When not running XY opens the USER folder and selects myfile.txt
Re: Bug when launching from command line
Posted: 27 Jul 2015 18:48
by highend
And you don't want to show us the exact command, that you're executing?

Re: Bug when launching from command line
Posted: 27 Jul 2015 19:05
by sinilill
I'm launching it from AkelPad's toolbar: XYplorer.exe %f, %f is the filepath.
Re: Bug when launching from command line
Posted: 27 Jul 2015 19:38
by highend
Works fine for me when I execute XY from it with a file on my desktop.
You did surround the %f param with double quotes in AkelPads general tab setting?
Re: Bug when launching from command line
Posted: 28 Jul 2015 10:38
by sinilill
Yeah, I have %f quoted.
Now I downloaded a fresh copy of XY and tried it with a file path just from the cmd prompt. It WORKED, XY was running and I could enter as many file paths as I wanted and it would go to the location and select the file. But after a XY restart it DID NOT WORK anymore. I can still start XY with a file path and it works, but when XY is already running it isn't working anymore! I tried it with 3 fresh copies of XY and everytime had the same behaviour! Folder paths are always working!
Screenshot with fresh copy of XY
Screenshot of my XY
Looks like the last backslash from the file path is moved to the very end, so it looks like a folder path.
Both instances of XY are 15.40.0106
Re: Bug when launching from command line
Posted: 28 Jul 2015 11:09
by highend
Configuration > Startup & Exit > Allow multiple instances
Disable that. Try again.
Re: Bug when launching from command line
Posted: 28 Jul 2015 11:22
by sinilill
Thanks, that solved the problem!
Re: Bug when launching from command line
Posted: 28 Jul 2015 11:23
by highend
Yeah, but it's still a bug

Re: Bug when launching from command line
Posted: 28 Jul 2015 17:16
by admin
Yes, but not XY's bug.
Re: Bug when launching from command line
Posted: 28 Jul 2015 17:28
by highend
Which bug is it then?
A command prompt:
echo "%temp%\1.txt"
"C:\Users\Highend\AppData\Local\Temp\1.txt"
"D:\Users\Highend\Tools\XYplorer\XYplorer.exe" "%temp%\1.txt"
The running XY instance should now open that path inside a tab and select the file but with
[x] Allow multiple instances
you only get:
Location currently not available.
Highend\AppData\Local\Temp1.txt
C:\Users\
is missing
and the backslash after Temp.
If [ ] Allow multiple instances is off, the same procedure leads to a correct result.
Can't see a bug invoked through the command prompt?
Re: Bug when launching from command line
Posted: 28 Jul 2015 17:33
by admin
Oh, now I see it too! Yes, it IS a bug. Fixing...
Re: Bug when launching from command line
Posted: 28 Jul 2015 17:47
by admin
Fixed. It was even a double bug.
- %temp% not parsed
- slash missing
Thanks!
Re: Bug when launching from command line
Posted: 28 Jul 2015 17:49
by highend
For other environment variables the missing slash was fixed as well?
E.g.: %userprofile% is resolved correctly but the missing backslash after the folder messes the thing up.
Re: Bug when launching from command line
Posted: 28 Jul 2015 18:05
by admin
Yes, all should be fixed next ver.