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.
tweak for portable XY-drive paths?
-
eil
- Posts: 1866
- Joined: 13 Jan 2011 19:44
tweak for portable XY-drive paths?
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.
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.
Win 7 SP1 x64 100% 1366x768|1900x1080
-
Stef123
Re: tweak for portable XY-drive pathes?
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\...
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: tweak for portable XY-drive pathes?
?: == 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.]
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.]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
binocular222
- Posts: 1423
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: tweak for portable XY-drive pathes?
Maybe he means this
Configuration > Tags > Enable portable tags
Configuration > Tags > Enable portable tags
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
-
admin
- Site Admin
- Posts: 66300
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: tweak for portable XY-drive pathes?
Simply put ?:\... into the PFA definition instead of the fixed drive letter.
FAQ | XY News RSS | XY X
-
Stef123
Re: tweak for portable XY-drive pathes?
Yep, that's what I meant when I asked eil what he meant ...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...
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
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: tweak for portable XY-drive pathes?
"
: Hey, this emoticon - where do you get stuff like that?"
that one's from Yahoo! . Although on secondthought 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!
that one's from Yahoo! . Although on second
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!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
eil
- Posts: 1866
- Joined: 13 Jan 2011 19:44
Re: tweak for portable XY-drive pathes?
exactly!Stef123 wrote:You mean storing paths relatively to xypath? By default if Xy is run portable?
of course +1 for that. =)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...
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_Tadmin wrote:Simply put ?:\... into the PFA definition instead of the fixed drive letter.
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.
Win 7 SP1 x64 100% 1366x768|1900x1080
-
eil
- Posts: 1866
- Joined: 13 Jan 2011 19:44
Re: tweak for portable XY-drive paths?
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);Win 7 SP1 x64 100% 1366x768|1900x1080
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: tweak for portable XY-drive paths?
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: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);
Code: Select all
+item_that_will_have_a_custom_icon>path_to_the_custom_iconIcon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
eil
- Posts: 1866
- Joined: 13 Jan 2011 19:44
Re: tweak for portable XY-drive paths?
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.!
Win 7 SP1 x64 100% 1366x768|1900x1080
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: tweak for portable XY-drive paths?
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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
eil
- Posts: 1866
- Joined: 13 Jan 2011 19:44
Re: tweak for portable XY-drive paths?
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;}Win 7 SP1 x64 100% 1366x768|1900x1080
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: tweak for portable XY-drive paths?
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.
But please don't just grab random unrelated lines from a script and ask for a solution. It can get confusing.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
XYplorer Beta Club