In my system, there are many instances of Opening a file where I do the following
Do trmatt2 With Sys(5)+Curdir()+"PAYREP3.XLSX",'OPEN' and trmatt2 looks like this
LPARAMETERS tcFile, tcAction
tcFile =IIF(type("tcFile")="C",tcFile,sys(5)+curdir()+"README.RTF") tcAction='OPEN'
if !file(tcFile) =messagebox('Sorry, problem finding the file ',0,'') else wait window nowait 'Opening '+tcFile
DECLARE INTEGER ShellExecute ; IN SHELL32.dll ; INTEGER nWinHandle,; STRING cOperation,; STRING cFileName,; STRING cParameters,; STRING cDirectory,; INTEGER nShowWindow
DECLARE INTEGER FindWindow IN WIN32API STRING cNull,STRING cWinName
RETURN ShellExecute(FindWindow(0,_SCREEN.caption),tcAction,tcFile,"",SYS(2023),1) endif
This is working fine with all manner of files, EXCEPT JPG files Can anyone help me with this?
What opens JPG when you double-click on one?
Paint
On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm wrote:
What opens JPG when you double-click on one?
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]
Try 'Edit' instead of 'Open' as the verb.
Windows 10?
Mike Copeland
Sytze de Boer wrote:
Paint
On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm wrote:
What opens JPG when you double-click on one?
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]
yes win 10
On 22/08/2016 8:14 PM, "Mike Copeland" mike@ggisoft.com wrote:
Windows 10?
Mike Copeland
Sytze de Boer wrote:
Paint
On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm wrote:
What opens JPG when you double-click on one?
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]
Just curious....If you change the file extension to .jpeg if it still acts the same way (wrong.)
I had a client just a week ago who began having trouble with JPG files after their computer was upgraded to Win10 Pro. Changing the file extension to JPEG made their email program begin working again.
Again, just curious what might happen in your case.
Mike Copeland
Sytze de Boer wrote:
yes win 10
On 22/08/2016 8:14 PM, "Mike Copeland" mike@ggisoft.com wrote:
Windows 10?
Mike Copeland
Sytze de Boer wrote:
Paint
On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm wrote:
What opens JPG when you double-click on one?
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]
Thank you all
EDIT made no difference JPEG made no difference
Any other suggestions?
On Mon, Aug 22, 2016 at 8:45 PM, Mike Copeland mike@ggisoft.com wrote:
Just curious....If you change the file extension to .jpeg if it still acts the same way (wrong.)
I had a client just a week ago who began having trouble with JPG files after their computer was upgraded to Win10 Pro. Changing the file extension to JPEG made their email program begin working again.
Again, just curious what might happen in your case.
Mike Copeland
Sytze de Boer wrote:
yes win 10
On 22/08/2016 8:14 PM, "Mike Copeland" mike@ggisoft.com wrote:
Windows 10?
Mike Copeland
Sytze de Boer wrote:
Paint
On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm wrote:
What opens JPG when you double-click on one?
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]
I would try changing the default application for that file type extension (JPG) in the SETTINGS dialog. Windows 10 seems to handle file associations a little different.
Just a WAG.
Mike
Sytze de Boer wrote:
Thank you all
EDIT made no difference JPEG made no difference
Any other suggestions?
On Mon, Aug 22, 2016 at 8:45 PM, Mike Copeland mike@ggisoft.com wrote:
Just curious....If you change the file extension to .jpeg if it still acts the same way (wrong.)
I had a client just a week ago who began having trouble with JPG files after their computer was upgraded to Win10 Pro. Changing the file extension to JPEG made their email program begin working again.
Again, just curious what might happen in your case.
Mike Copeland
Sytze de Boer wrote:
yes win 10
On 22/08/2016 8:14 PM, "Mike Copeland" mike@ggisoft.com wrote:
Windows 10?
Mike Copeland
Sytze de Boer wrote:
Paint
On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm wrote:
What opens JPG when you double-click on one?
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]
Defaulting the system to use Photo instead of Paint has solved the problem.
On Tue, Aug 23, 2016 at 8:06 AM, Mike Copeland mike@ggisoft.com wrote:
I would try changing the default application for that file type extension (JPG) in the SETTINGS dialog. Windows 10 seems to handle file associations a little different.
Just a WAG.
Mike
Sytze de Boer wrote:
Thank you all
EDIT made no difference JPEG made no difference
Any other suggestions?
On Mon, Aug 22, 2016 at 8:45 PM, Mike Copeland mike@ggisoft.com wrote:
Just curious....If you change the file extension to .jpeg if it still acts
the same way (wrong.)
I had a client just a week ago who began having trouble with JPG files after their computer was upgraded to Win10 Pro. Changing the file extension to JPEG made their email program begin working again.
Again, just curious what might happen in your case.
Mike Copeland
Sytze de Boer wrote:
yes win 10
On 22/08/2016 8:14 PM, "Mike Copeland" mike@ggisoft.com wrote:
Windows 10?
Mike Copeland
Sytze de Boer wrote:
Paint
On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm wrote:
What opens JPG when you double-click on one?
> -- > Alan Bourke > alanpbourke (at) fastmail (dot) fm >
[excessive quoting removed by server]
They *really* want you to use the new apps
Great!
Win 10 has some quirks, to say the least.
Mike
Sytze de Boer wrote:
Defaulting the system to use Photo instead of Paint has solved the problem.
On Tue, Aug 23, 2016 at 8:06 AM, Mike Copeland mike@ggisoft.com wrote:
I would try changing the default application for that file type extension (JPG) in the SETTINGS dialog. Windows 10 seems to handle file associations a little different.
Just a WAG.
Mike
Sytze de Boer wrote:
Thank you all
EDIT made no difference JPEG made no difference
Any other suggestions?
On Mon, Aug 22, 2016 at 8:45 PM, Mike Copeland mike@ggisoft.com wrote:
Just curious....If you change the file extension to .jpeg if it still acts
the same way (wrong.)
I had a client just a week ago who began having trouble with JPG files after their computer was upgraded to Win10 Pro. Changing the file extension to JPEG made their email program begin working again.
Again, just curious what might happen in your case.
Mike Copeland
Sytze de Boer wrote:
yes win 10
On 22/08/2016 8:14 PM, "Mike Copeland" mike@ggisoft.com wrote:
Windows 10?
Mike Copeland
Sytze de Boer wrote:
Paint
> On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm wrote: > > What opens JPG when you double-click on one? > > >> -- >> Alan Bourke >> alanpbourke (at) fastmail (dot) fm >>
[excessive quoting removed by server]
What I can't follow is that when I'm in Windows explorer and double the jpg file, all goes fine But, when I use the shellexecute process it does not
So what exactly is shellexecute?
On Tue, Aug 23, 2016 at 9:43 AM, Mike Copeland mike@ggisoft.com wrote:
Great!
Win 10 has some quirks, to say the least.
Mike
Sytze de Boer wrote:
Defaulting the system to use Photo instead of Paint has solved the problem.
On Tue, Aug 23, 2016 at 8:06 AM, Mike Copeland mike@ggisoft.com wrote:
I would try changing the default application for that file type extension
(JPG) in the SETTINGS dialog. Windows 10 seems to handle file associations a little different.
Just a WAG.
Mike
Sytze de Boer wrote:
Thank you all
EDIT made no difference JPEG made no difference
Any other suggestions?
On Mon, Aug 22, 2016 at 8:45 PM, Mike Copeland mike@ggisoft.com wrote:
Just curious....If you change the file extension to .jpeg if it still acts
the same way (wrong.)
I had a client just a week ago who began having trouble with JPG files after their computer was upgraded to Win10 Pro. Changing the file extension to JPEG made their email program begin working again.
Again, just curious what might happen in your case.
Mike Copeland
Sytze de Boer wrote:
yes win 10
On 22/08/2016 8:14 PM, "Mike Copeland" mike@ggisoft.com wrote:
Windows 10?
Mike Copeland > > > Sytze de Boer wrote: > > Paint > > On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm >> wrote: >> >> What opens JPG when you double-click on one? >> >> >> -- >>> Alan Bourke >>> alanpbourke (at) fastmail (dot) fm >>>
[excessive quoting removed by server]
I would call it an API...but I'm just an old Foxpro hacker, not a systems operations C+ guy. I'm sure there's a TLA for it...some name that makes it sound valuable.
Mike
Sytze de Boer wrote:
What I can't follow is that when I'm in Windows explorer and double the jpg file, all goes fine But, when I use the shellexecute process it does not
So what exactly is shellexecute?
On Tue, Aug 23, 2016 at 9:43 AM, Mike Copeland mike@ggisoft.com wrote:
Great!
Win 10 has some quirks, to say the least.
Mike
Sytze de Boer wrote:
Defaulting the system to use Photo instead of Paint has solved the problem.
On Tue, Aug 23, 2016 at 8:06 AM, Mike Copeland mike@ggisoft.com wrote:
I would try changing the default application for that file type extension
(JPG) in the SETTINGS dialog. Windows 10 seems to handle file associations a little different.
Just a WAG.
Mike
Sytze de Boer wrote:
Thank you all
EDIT made no difference JPEG made no difference
Any other suggestions?
On Mon, Aug 22, 2016 at 8:45 PM, Mike Copeland mike@ggisoft.com wrote:
Just curious....If you change the file extension to .jpeg if it still acts
the same way (wrong.)
I had a client just a week ago who began having trouble with JPG files after their computer was upgraded to Win10 Pro. Changing the file extension to JPEG made their email program begin working again.
Again, just curious what might happen in your case.
Mike Copeland
Sytze de Boer wrote:
yes win 10
> On 22/08/2016 8:14 PM, "Mike Copeland" mike@ggisoft.com wrote: > > Windows 10? > > Mike Copeland >> >> Sytze de Boer wrote: >> >> Paint >> >> On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm >>> wrote: >>> >>> What opens JPG when you double-click on one? >>> >>> >>> -- >>>> Alan Bourke >>>> alanpbourke (at) fastmail (dot) fm >>>>
[excessive quoting removed by server]
ShellExecute/ShellExecuteEx are a way of programmatically doing the same thing that happens when you double-click on a file in Windows Explorer. So they will query the registry for file associations and so forth. Ultimately they use the Windows API CreateProcess() function to start the associated application.
Again, this is just a WAG, but I suspect that Windows 10 didn't have a defined default "process this file extension with this application" link in the registry even though Paint was coming to the rescue, probably as a default fallback app for any graphics file.
Mike
Sytze de Boer wrote:
What I can't follow is that when I'm in Windows explorer and double the jpg file, all goes fine But, when I use the shellexecute process it does not
So what exactly is shellexecute?
On Tue, Aug 23, 2016 at 9:43 AM, Mike Copeland mike@ggisoft.com wrote:
Great!
Win 10 has some quirks, to say the least.
Mike
Sytze de Boer wrote:
Defaulting the system to use Photo instead of Paint has solved the problem.
On Tue, Aug 23, 2016 at 8:06 AM, Mike Copeland mike@ggisoft.com wrote:
I would try changing the default application for that file type extension
(JPG) in the SETTINGS dialog. Windows 10 seems to handle file associations a little different.
Just a WAG.
Mike
Sytze de Boer wrote:
Thank you all
EDIT made no difference JPEG made no difference
Any other suggestions?
On Mon, Aug 22, 2016 at 8:45 PM, Mike Copeland mike@ggisoft.com wrote:
Just curious....If you change the file extension to .jpeg if it still acts
the same way (wrong.)
I had a client just a week ago who began having trouble with JPG files after their computer was upgraded to Win10 Pro. Changing the file extension to JPEG made their email program begin working again.
Again, just curious what might happen in your case.
Mike Copeland
Sytze de Boer wrote:
yes win 10
> On 22/08/2016 8:14 PM, "Mike Copeland" mike@ggisoft.com wrote: > > Windows 10? > > Mike Copeland >> >> Sytze de Boer wrote: >> >> Paint >> >> On 22/08/2016 7:54 PM, "Alan Bourke" alanpbourke@fastmail.fm >>> wrote: >>> >>> What opens JPG when you double-click on one? >>> >>> >>> -- >>>> Alan Bourke >>>> alanpbourke (at) fastmail (dot) fm >>>>
[excessive quoting removed by server]