|
Post by Stefan on Feb 27, 2021 16:13:35 GMT -5
George,
I believe this used to work fine prior to v21053, but I'm not 100% sure.
I have a file on another machine on my network. Its file type is .RLST and this is associated with SPFLITE for editing, i.e. the Windows Explorer displays the file with a mini SPFLITE icon. SPFLITE has a profile for that filetype.
If I drag the file from Windows Explorer to the open SPFLite window, it opens just fine. But if I just double-click the file, or drag it to the SPFLite icon on my desktop, I get a pop-up window with the message.
The specified file (\SUPPORT-PC\Specials\MatchRej.RLST), cannot be found: Created as a Zero length file
Note the single '\' at the start of the path name. It should be a double \\ sequence, given it references a resource on another machine on the network.
Performing a double-click or a drag-to-icon when the file resides on the local machine, works as expected.
|
|
|
Post by George on Feb 27, 2021 16:46:15 GMT -5
All I can do is echo Roberts diagnosis.
George
|
|
|
Post by Stefan on Feb 27, 2021 18:22:16 GMT -5
Robert - I did piont out that one of the '\' characters was missing.
Yes I can drag it to the SPFLite icon if I map a drive letter to the same directory on the remote machine. Under those circumstances, double-click also works.
I do note that even without a mapped drive letter... Dragging the file to a shortcut (icon) for Notepad works fine. So does double-clicking the file icon if I associate it with Notepad rather than SPFLite.
And, as I stated, SPFLite has no issue loading the file if I drag it to an already open SPFLite window.
|
|
|
Post by mueh on Feb 28, 2021 3:03:26 GMT -5
George and all other : If you Drop multiple files to an active window it works because it's handled in _DialogStuff.inc '----- A file has been dropped on our window CASE %WM_DROPFILES ' Look for dropped files
if files are dropped in to the ICON it's the same as if you are supplying the file name as command parameter . this is handled in _ObjENV.inc which doesn't support multiple files as parameter . issued file name with 3 \\\ and it works . following code in ObjENV.inc seems to strip off leading \ . Hope this helps .
'----- Must be a filename or FM Path/Mask request then
ELSE ' Anything else must be a filename
InitString = CWord ' Save it
sUnQuote(InitString) ' Remove quotes
IF LEFT$(InitString, 1) = "\" THEN InitString = CLIP$(LEFT, InitString, 1) ' Strip off any leading \
|
|