Page 1 of 1
tweak for portable XY-drive paths?
Posted: 18 Mar 2015 12:53
by eil
is there a tweak or a setting to make XY save any pathes that are on the same drive as portable?(with '?' instead of drive letter) if not i want to make a Wish.

i have a folder with portable apps for PFA on same drive as XY and i have lots of PFI set on same drive - i need XY to be able to save these pathes portable(when i add new), so i can anytime just copy everything to usb-drive without need to edit pathes.
Re: tweak for portable XY-drive pathes?
Posted: 18 Mar 2015 13:17
by Stef123
You mean storing paths relatively to xypath? By default if Xy is run portable? That'd be great. ATM I always modify my paths manually via <xypath>\..\whatever\...
Re: tweak for portable XY-drive pathes?
Posted: 18 Mar 2015 13:44
by bdeshi
?: == XYplorer's Drive and <xypath>\..\ == XYplorer's parent path
If XY is in "D:\Portable\XYplorer\"
?:\Portable\XNViewMP\XNView.exe == <xypath>\..\XNviewMP\XNView.exe == D:\Portable\XNViewMP\XNView.exe
In many places, you can just type paths realtive to <xypath> ..\XNViewMP\XNView.exe
HOWEVER, yes, it'd be great if there was a tweak that made XY automatically save all types of paths portably: the various MRUs, pane.ini histories...

[ed.]
Re: tweak for portable XY-drive pathes?
Posted: 18 Mar 2015 13:55
by binocular222
Maybe he means this
Configuration > Tags > Enable portable tags
Re: tweak for portable XY-drive pathes?
Posted: 18 Mar 2015 13:56
by admin
Simply put ?:\... into the PFA definition instead of the fixed drive letter.
Re: tweak for portable XY-drive pathes?
Posted: 18 Mar 2015 15:46
by Stef123
SammaySarkar wrote:
HOWEVER, it'd be great if there was a tweak that makes XY save all types of paths portably: the various MRUs, pane.ini histories...

Yep, that's what I meant when I asked eil what he meant ...
I use an ahk auto-replacement shortcut to insert my often-needed <xypath>\..\etc.. but it still requires to actually dive in there and prune the branches accordingly.
Hey, this emoticon - where do you get stuff like that? Recently you had something else cooking, some pseudo-Latin Lorem ipsum dolor pork sausage

Re: tweak for portable XY-drive pathes?
Posted: 18 Mar 2015 19:11
by bdeshi
"
: Hey, this emoticon - where do you get stuff like that?"
that one's from
Yahoo! . Although on second
thought view, they're not of great quanlity...
So here's another great collection at
DeviantArt .
"
some pseudo-Latin Lorem ipsum dolor pork sausage 
"
that's
Bacon Ipsum ,though I usually generate
lorems with
Emmet on ST.
But there's no reason XY can't do it!
Re: tweak for portable XY-drive pathes?
Posted: 18 Mar 2015 19:57
by eil
Stef123 wrote:You mean storing paths relatively to xypath? By default if Xy is run portable?
exactly!
SammaySarkar wrote:HOWEVER, it'd be great if there was a tweak that makes XY save all types of paths portably: the various MRUs, pane.ini histories...

of course +1 for that. =)
admin wrote:Simply put ?:\... into the PFA definition instead of the fixed drive letter.
i don't really use PFA/PFI dialogs, instead a have simple on the fly buttons. copy path of smth and simply add line to list of PFA/PFI is not so difficult, but to make script(button) to edit pathes with exchanging letter, and only if it's an XY-drive letter, is far more difficult T_T
add: as i understand there's no corresponding tweak. what i desired is with this tweak on, each time XY needs to save some path and it's same drive as <xypath> it uses '?'. no matter if it's MRU, catalog entry or PFI.
Re: tweak for portable XY-drive paths?
Posted: 19 Mar 2015 17:41
by eil
Don it's really not funny = even after i managed to modify script to get path as "?:\..." PFI still has "D:\.."
Code: Select all
$f_ico = replace(substr("<curitem>", 1), ":\", "?:\");
seticons("+<curitem>\>$f_ico",a);
Re: tweak for portable XY-drive paths?
Posted: 21 Mar 2015 17:53
by bdeshi
eil wrote:Don it's really not funny = even after i managed to modify script to get path as "?:\..." PFI still has "D:\.."
Code: Select all
$f_ico = replace(substr("<curitem>", 1), ":\", "?:\");
seticons("+<curitem>\>$f_ico",a);
What are you trying to do here? assign a particular icon to a single particular folder? But it seems like you're tyring to assing the folder itself as it's icon. this is the (basic) PFI syntax btw:
Code: Select all
+item_that_will_have_a_custom_icon>path_to_the_custom_icon
$f_ico is just a drive-portable path to <curitem> and then you're trying to assign that back to <curitem>\ where the \ means it's a folder. but if <curitem> is a folder, it can't have an icon
resource .
Re: tweak for portable XY-drive paths?
Posted: 21 Mar 2015 22:37
by eil
SammaySarkar, those lines are from different places in script, sorry i depicted it badly. but just half an hour ago i found mistake you're kinda pointing at = i forgot to "edit" both parts with '?'. i'm newbie in scripting so to find the mistake-place was quite tricky for me =/ thanks for your time to check.!
Re: tweak for portable XY-drive paths?
Posted: 22 Mar 2015 05:28
by bdeshi
Well, even after correcting each part with ?: , my point still stays valid: the script is trying to assign a folder itself as it's icon.
Re: tweak for portable XY-drive paths?
Posted: 22 Mar 2015 09:09
by eil
SammaySarkar, no, i told you those lines are from different parts. full script is
Code: Select all
if (exists(<curitem>) == 1 && (<curext> == "exe" || <curext> == "ico")) {
perm $f_ico;
$f_ico = replace(substr("<curitem>", 1), ":\", "?:\");
ctbicon(:tagsrmv); ctbstate(1); ctbname($f_ico);}
elseif (exists(<curitem>) == 2 && ctbicon() == ":tagsrmv") {
$f2_ico = replace(substr("<curitem>", 1), ":\", "?:\");
seticons("+$f2_ico\>$f_ico",a);
ctbicon(:tagsadd); ctbstate(0); ctbname("Folder Icon Setter");
unset $f_ico;}
Re: tweak for portable XY-drive paths?
Posted: 22 Mar 2015 10:45
by bdeshi
Ok, sorry for the trouble.
But please don't just grab random
unrelated lines from a script and ask for a solution. It can get confusing.
