|
Post by Stefan on Nov 14, 2020 8:51:33 GMT -5
Hi George,
Several of my folders are logically spread across devices. For example, I may have a path like "C:\Users\Stef\Documents\Finance\TAX Returns\..." with a bunch of files in it for the current tax year. But previous years' records will be on my NAS, probably in a path like "S:\Shared\Documents\Finance\Tax Returns\...." you get the drift. (Or one might have Test versions of programs locally and production version in another location).
To simplify Explorer navigation when jumping between data from different years, I have a $hared.LNK (shortcut) file in the local (C:\Users\...) folder that points at the corresponding NAS folder and a similar £ocal.LNK file to point back to the local folder. Using File Explorer, jumping between the two locations for my Tax returns is a simple click.
So what, I hear you ask...
Well, if I point FM at the 'local' Tax Return folder, I see the $hared.LNK file. If I click on it, SPFLite issues message "Filename is a Folder, not a File". Temptingly close, but no cigar!
If I click on a 'proper' Folder, FM opens that folder and shows me the files within.
My Suggestion, and your challenge, is to treat a .LNK file like a redirection to another destination and jump to that location. Obviously, there's no automatic way back from there (e.g. via END or PFK3), but in the above use case, that is acceptable.
(By the way - why can I not even 'B'rowse the .LNK file and have to resort to NOTEPAD or rename it and open it as .TXT in SPFLITE just to see what's within?)
|
|
|
Post by George on Nov 14, 2020 11:54:46 GMT -5
Guys: SPFLite knows how to resolve a .LNK to the real file (I remember adding in the function). Now the question is to get that invoked inside FM, it shouldn't be too hard (famous last words). Right now the LNK conversion is only done for files dropped onto the SPFLite window. Only problem I see is whether the FM list should show the LNK name or it's true name. George [UPDATE] OK, here's a trial to play with. The FM S/B/E/V commands will now resolve .LNK entries. If a file, it just opens it, if a folder, it switches te FM display to that folder. As I said, it should be trivial, let me know your results. SPFLite22.exe (490.5 KB) [\UPDATE]
|
|
|
Post by Stefan on Nov 14, 2020 14:39:02 GMT -5
Hi George,
That does exactly what I thought. Great stuff!
FWiW ... I think FM should show the .LNK name - that is what is in the folder I'm viewing and what I expect to see. If FM shows me the name of the destination/target, it would be confusing, because i know that isn't really IN that folder/directory.
|
|
|
Post by George on Nov 14, 2020 14:44:18 GMT -5
It should continue to show the LNKname, the conversion is only done when you select the line item.
George
|
|
|
Post by George on Nov 15, 2020 13:06:20 GMT -5
Robert: Possibility. I'll have a look, the main problem with that kind of thing is the "when to clear it". And I don't want to get into mouse hover logic either.
|
|
|
Post by George on Nov 15, 2020 16:20:15 GMT -5
Yes, sounds fine. Easier said than done.
|
|
|
Post by George on Nov 17, 2020 10:34:35 GMT -5
Robert: Yes, that could work. That code is quite a mess, but who knows.
[UPDATE] After much brain refreshing to figure out how the Status bar logic works (it got incredibly weirder when we allowed users to re-arrange the boxes), I got this to work. The clearing is not perfect, but really, how many .LNK files are likely to be present in an average user's file lists?
[\UPDATE]
|
|