Page 1 of 1
portable xy and files accessibility
Posted: 21 Aug 2014 22:34
by yusef88
hi
i use a portable version of xyplorer on a usb, my problem everytime i attach this usb to different computers its drive letter changed so my recent and favourite files and folders become unreachable (folders and file at the same usb) example: "K:\NewText.text" in first computer change to "G:\NewText.text" in the second one,is there any method to make them available as long as they are at the same xy drive?
Re: portable xy and files accessibility
Posted: 21 Aug 2014 22:54
by highend
Use a variable instead of a drive letter:
E.g.:
<xydrive>
Re: portable xy and files accessibility
Posted: 21 Aug 2014 23:09
by yusef88
with favorites it's ok,i wish if i could open recent files just by double click
Re: portable xy and files accessibility
Posted: 21 Aug 2014 23:19
by highend
How do you invoke this recent file window?
Re: portable xy and files accessibility
Posted: 21 Aug 2014 23:32
by yusef88
Code: Select all
open inputselect("Recent Files", get("list_recentlyopenedfiles"), <crlf>, 5);
Re: portable xy and files accessibility
Posted: 21 Aug 2014 23:47
by highend
Use this:
Code: Select all
open inputselect("Recent Files", regexreplace(get("list_recentlyopenedfiles"), "[A-Z]:", "<xydrive>"), "<crlf>", 5);
Re: portable xy and files accessibility
Posted: 22 Aug 2014 00:07
by yusef88
many thanks

.. what about favorites files?
Re: portable xy and files accessibility
Posted: 22 Aug 2014 08:08
by bdeshi
Code: Select all
$favf=;$t = getkey("Count","FavFiles");$c = 1;
while($c <= $t){$favf = $favf.'|'.getkey("Fav$c","FavFiles");$c++;}
open inputselect("Favorite Files", regexreplace(trim($favf,'|'), "[A-Z]:", "<xydrive>"), "|", 5);
Obviously you have to save settings after making changes to the favfiles list for this script to register the changes.
saving favorites relative to XYplorer is better. Like "..\..\SublimeText\sublinme_text.exe"
Re: portable xy and files accessibility
Posted: 22 Aug 2014 14:13
by yusef88
@SammaySarkar
thanks for help,your scrip shows recent files only
saving favorites relative to XYplorer is better. Like "..\..\SublimeText\sublinme_text.exe"
is there an easy way to save favorite to relative path without the drive letter?
Re: portable xy and files accessibility
Posted: 22 Aug 2014 15:47
by bdeshi
yusef88 wrote:thanks for help,your scrip shows recent files only
No it doesn't. I copy-pasted-modified a line from highend's script, and forgot to change the inputselect()'s title. Did that now.
yusef88 wrote:is there an easy way to save favorite to relative path without the drive letter?
I usually alter the ini keys directly after saving favorites. This job can be automated with a script.