portable xy and files accessibility

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

portable xy and files accessibility

Post 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?

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: portable xy and files accessibility

Post by highend »

Use a variable instead of a drive letter:

E.g.:
<xydrive>
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: portable xy and files accessibility

Post by yusef88 »

with favorites it's ok,i wish if i could open recent files just by double click
To see the attached files, you need to log into the forum.

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: portable xy and files accessibility

Post by highend »

How do you invoke this recent file window?
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: portable xy and files accessibility

Post by yusef88 »

Code: Select all

open inputselect("Recent Files", get("list_recentlyopenedfiles"), <crlf>, 5);

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: portable xy and files accessibility

Post by highend »

Use this:

Code: Select all

open inputselect("Recent Files", regexreplace(get("list_recentlyopenedfiles"), "[A-Z]:", "<xydrive>"), "<crlf>", 5);
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: portable xy and files accessibility

Post by yusef88 »

many thanks :D .. what about favorites files?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: portable xy and files accessibility

Post 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"
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: portable xy and files accessibility

Post 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?
To see the attached files, you need to log into the forum.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: portable xy and files accessibility

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply