The Files Function borked?
    Bob Sneidar 
    bobsneidar at iotecdigital.com
       
    Fri Jan 24 12:06:34 EST 2025
    
    
  
When I use answer file on a parallels share folder (one from the MacOS) I get something like this: 
C:/Mac/Home/Desktop/patch1.hex
When I use the dir command it correctly resolves the path, but cannot find the file:
U:\>dir /T:W "C:/Mac/Home/Desktop/patch1.hex"
 Volume in drive C has no label.
 Volume Serial Number is D892-E6EA
 Directory of C:\Mac\Home\Desktop
File Not Found
U:\>
But this works:
U:\>dir /T:W "\\Mac\Home\Desktop\patch1.hex"
 Volume in drive \\Mac\Home is Shared Folders
 Volume Serial Number is 0000-0000
 Directory of \\Mac\Home\Desktop
10/20/2023  12:06 AM               408 patch1.hex
               1 File(s)            408 bytes
               0 Dir(s)  393,116,905,472 bytes free
So in the first example it looks like Windows correctly resolves the file path, but then cannot find the file! 
I think what I need is a way to reliably convert a file path from the format that Livecode uses to the format the command consolve can use. I could have sworn that LC had a function to convert to and from Windows file paths, but I can’t find it in the dictionary. I’ll probably have to roll my own. 
Bob S
> On Jan 15, 2025, at 12:13 PM, Curry Kenworthy via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Bob:
> 
> > I keep getting “file not found.”
> 
> > answer file "Select file"
> > put it into tFileName
> > put "dir /T:W "  & quote & tFileName & quote into tCmd
> > put shell(tCmd)
> 
> Whaaa???
> 
> Fix your /'s!
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Radically Innovative Christian LiveCode Development
> "PASSION for Elegant, Efficient Code!"
> https://livecodeconsulting.com/
> 
> More news after recuperating a bit....
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
    
    
More information about the use-livecode
mailing list