[Pharo-users] Re: How to open files in the underlying OS

2023-12-06 Thread Rui Viana Pereira
@John: That solves the problem, in fact. Many thanks. I'm a bit ashamed that I couldn't find such a simple solution. But I'm happy, because now I can get back on track. *Rui Viana Pereira* John Aspinall escreveu no dia quarta, 6/12/2023 à(s) 16:13: > Hi Rui - on my system (Windows 10, Pharo

[Pharo-users] Re: How to open files in the underlying OS

2023-12-06 Thread John Aspinall
Hi Rui - on my system (Windows 10, Pharo 11 with Pharo-OS-Windows package) both of the following work fine: WinShell shellOpen: 'd:\temp\test audio.mp3’. WinShell shellOpen: 'd:/temp/test audio.mp3’. Evaluating either one from a Playground opens the mp3 file with the registered app (VLC in

[Pharo-users] Re: How to open files in the underlying OS

2023-12-06 Thread Rui Viana Pereira
@Guillermo: Very useful remark, it made me review my code. First of all, I refactored it to assure the address is written correctly, that is, with a separator '\' instead of '/'. (I suppose there is a method to convert paths from Pharo to DOS, but I couldn't find it, so I reinvented the wheel.)

[Pharo-users] Re: How to open files in the underlying OS

2023-12-06 Thread Guillermo Polito
Hi Rui, Just a quick look at the Win32 error codes https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499- It tells me that 16r0002 means “File not found”. Are you sure that